forked from maik/IPFS-portal
f72b775379
- categorie A: alle catch(e: any) → catch(e: unknown) met instanceof check - categorie B: stille .catch() logging toegevoegd (SWRegister, admin, upload, auth) - categorie C: hardcoded 192.168.1.176 IPs vervangen door env var defaults - categorie D: page files >250L gesplitst (history, settings, explorer, admin/payment, ipns, users, upload, dashboard) in helpers/components - categorie E: eslint-disable vervangen in SearchInput.tsx - src/lib/config.ts centrale config module (localhost defaults) - CSP in next.config.ts dynamisch via env var - deploy.sh: geen hardcoded IP meer (REQUIRED arg) - lib/api/ lib/auth/ lib/wallet/ lib/search-index/ lib/storage/ gesplitst in modules - ongebruikte bestanden verwijderd: api.ts, auth.tsx, wallet.ts, search-index.ts, PaymentPanel.tsx, SearchBar.tsx, proxy.ts, serve-static.js
25 lines
835 B
Bash
25 lines
835 B
Bash
# ── IPFS Portal Environment Variables ──
|
|
# Copy to .env.local (dev) or .env.production (prod)
|
|
|
|
# JWT secret for session cookies (REQUIRED in production — generate with: openssl rand -hex 32)
|
|
# JWT_SECRET=
|
|
|
|
# Python User Management API
|
|
# USER_API_BASE=http://localhost:8444
|
|
# USER_API_ADMIN_KEY=
|
|
|
|
# Kubo RPC API (optional — if behind proxy)
|
|
# KUBO_API_URL=http://localhost:5001
|
|
# KUBO_BASIC_AUTH=user:password
|
|
|
|
# zkSync Local RPC + Explorer (smart contract chain 270)
|
|
# ZKSYNC_RPC_URL=http://localhost:3050
|
|
# NEXT_PUBLIC_ZKSYNC_RPC_URL=http://localhost:3050
|
|
# NEXT_PUBLIC_ZKSYNC_EXPLORER_URL=http://localhost:3050
|
|
|
|
# Contract address (default deployed on chain 270)
|
|
# PAYMENT_CONTRACT_ADDRESS=0xCBc6b8aeea129c206F4836799621C833Bf8B9BDe
|
|
|
|
# IPFS Gateway (for share links)
|
|
# NEXT_PUBLIC_GATEWAY_URL=https://ipfs.maos.dedyn.io
|