Skip to content

Commit 00ff809

Browse files
authored
Merge pull request #121 from adetumilara/feature/NV-46-postgres-schema-migrations
feat(db): implement PostgreSQL schema and migrations for insurance en…
2 parents 4e6476b + 7b5584f commit 00ff809

17 files changed

Lines changed: 3030 additions & 63 deletions

backend/.env.example

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ PORT=3000
66

77
# Database
88
DATABASE_URL=postgresql://postgres:password@localhost:5432/niffyinsure?schema=public
9+
DB_HOST=localhost
10+
DB_PORT=5432
11+
DB_USER=niff_user
12+
DB_PASSWORD=niff_password
13+
DB_NAME=niff_stellar
914

1015
# Redis
1116
REDIS_URL=redis://localhost:6379/0
1217

1318
# Soroban RPC
14-
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org # or mainnet
19+
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
1520

1621
# Contract
1722
CONTRACT_ID=
@@ -23,20 +28,28 @@ STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
2328
# IPFS Configuration
2429
# Provider: mock | pinata
2530
IPFS_PROVIDER=mock
26-
# Pinata API credentials (required for pinata provider)
2731
PINATA_API_KEY=
2832
PINATA_API_SECRET=
2933
PINATA_GATEWAY_URL=https://gateway.pinata.cloud/ipfs
30-
# File upload limits
31-
IPFS_MAX_FILE_SIZE=52428800 # 50MB in bytes
32-
IPFS_MIN_FILE_SIZE=1 # 1 byte minimum
33-
# Security options
34-
IPFS_STRIP_EXIF=true # Strip EXIF metadata from images
34+
IPFS_MAX_FILE_SIZE=52428800
35+
IPFS_MIN_FILE_SIZE=1
36+
IPFS_STRIP_EXIF=true
3537

3638
# Auth
3739
JWT_SECRET=super-secret-jwt-key-change-in-prod
40+
JWT_EXPIRES_IN=7d
3841
ADMIN_TOKEN=admin-token-for-cli
3942

43+
# Staff Auth (required in non-production)
44+
DEFAULT_ADMIN_EMAIL=admin@niffyinsure.com
45+
DEFAULT_ADMIN_PASSWORD=
46+
DEFAULT_SUPPORT_EMAIL=support@niffyinsure.com
47+
DEFAULT_SUPPORT_PASSWORD=
48+
49+
# Stellar
50+
STELLAR_NETWORK=testnet
51+
HORIZON_URL=https://horizon-testnet.stellar.org
52+
4053
# Logging
4154
LOG_LEVEL=info
4255

0 commit comments

Comments
 (0)