Skip to content

Commit 7bf854a

Browse files
authored
Merge pull request #125 from yahia008/ipfs-upload-proxy
ipfs
2 parents d4ddac1 + c92cb48 commit 7bf854a

14 files changed

Lines changed: 2685 additions & 39 deletions

backend/.env.example

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ REDIS_URL=redis://localhost:6379/0
1313
# Soroban RPC
1414
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org # or mainnet
1515

16-
# IPFS
17-
IPFS_GATEWAY=https://ipfs.io
18-
IPFS_PROJECT_ID=
19-
IPFS_PROJECT_SECRET=
16+
# IPFS Configuration
17+
# Provider: mock | pinata
18+
IPFS_PROVIDER=mock
19+
# Pinata API credentials (required for pinata provider)
20+
PINATA_API_KEY=
21+
PINATA_API_SECRET=
22+
PINATA_GATEWAY_URL=https://gateway.pinata.cloud/ipfs
23+
# File upload limits
24+
IPFS_MAX_FILE_SIZE=52428800 # 50MB in bytes
25+
IPFS_MIN_FILE_SIZE=1 # 1 byte minimum
26+
# Security options
27+
IPFS_STRIP_EXIF=true # Strip EXIF metadata from images
2028

2129
# Auth
2230
JWT_SECRET=super-secret-jwt-key-change-in-prod

0 commit comments

Comments
 (0)