Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,23 @@ DEBUG_RPC=false
# Enable CORS for development
CORS_ENABLED=true
CORS_ORIGIN=http://localhost:3000

# ============================================
# Decentralized Storage
# ============================================

# Storage provider: pinata or mock
DECENTRALIZED_STORAGE_PROVIDER=pinata

# Pinata JWT used for IPFS pinning
PINATA_JWT=

# Gateway base URL for pinned assets
STORAGE_GATEWAY_BASE_URL=https://gateway.pinata.cloud/ipfs

# Garbage collection and retry settings
STORAGE_GC_RETENTION_DAYS=30
STORAGE_MAX_PIN_ATTEMPTS=5
STORAGE_BACKOFF_DELAY_MS=1000
STORAGE_WORKER_CONCURRENCY=10
STORAGE_JOB_TIMEOUT_MS=30000
3 changes: 3 additions & 0 deletions backend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
process.env.NODE_ENV = 'test';

export default {
preset: 'ts-jest',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
setupFiles: ['<rootDir>/tests/jest.setup.ts'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
Expand Down
14 changes: 14 additions & 0 deletions backend/logs/combined.log
Original file line number Diff line number Diff line change
Expand Up @@ -3823,3 +3823,17 @@ Unique constraint failed on the fields: (`tokenId`)
2026-05-20 09:55:58 info: Certificate minted on-chain: cert-api-stud-api-cour-1779267358588 -> token 295396
2026-05-20 09:55:58 info: Certificate minted: cert-api-stud-api-cour-1779267358588
2026-05-20 09:55:58 info: GET /api/v1/certificates/verify/295396
2026-05-31 01:55:38 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 01:55:38 info: Unpinned stale decentralized asset bafy123
2026-05-31 01:57:57 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 01:57:57 info: Unpinned stale decentralized asset bafy123
2026-05-31 02:00:22 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 02:00:22 info: Unpinned stale decentralized asset bafy123
2026-05-31 02:03:29 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 02:03:29 info: Unpinned stale decentralized asset bafy123
2026-05-31 02:06:51 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 02:06:51 info: Unpinned stale decentralized asset bafy123
2026-05-31 02:10:44 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 02:10:44 info: Unpinned stale decentralized asset bafy123
2026-05-31 02:13:08 info: Pinned decentralized asset project/project-1/example -> bafyd37873b9cdea335789ab00f55e95233b9090e32bb1162154b65bc6c2
2026-05-31 02:13:08 info: Unpinned stale decentralized asset bafy123
Loading