-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.env.example
More file actions
114 lines (96 loc) · 3.56 KB
/
.env.example
File metadata and controls
114 lines (96 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Server Config
PORT=3000
# IPFS Config (Example using Infura)
IPFS_HOST=ipfs.infura.io
IPFS_PORT=5001
IPFS_PROTOCOL=https
IPFS_PROJECT_ID=your_infura_project_id
IPFS_PROJECT_SECRET=your_infura_project_secret
# Stellar Config
CONTRACT_ID=CAEGD57WVTVQSYWYB23AISBW334QO7WNA5XQ56S45GH6BP3D2AVHKUG4
PORT=3000
# Auth configuration
AUTH_JWT_SECRET=replace-with-a-long-random-secret
AUTH_JWT_ISSUER=leaseflow-backend
AUTH_JWT_AUDIENCE=leaseflow-users
# SQLite persistence
DATABASE_FILENAME=./data/leaseflow-protocol.sqlite
# Lease renewal job
LEASE_RENEWAL_JOB_ENABLED=false
LEASE_RENEWAL_JOB_INTERVAL_MS=86400000
LEASE_RENEWAL_SCAN_WINDOW_DAYS=0
# Lease archival job (Table Partitioning - Task 2)
LEASE_ARCHIVAL_JOB_ENABLED=false
LEASE_ARCHIVAL_CRON=0 2 1 * *
LEASE_ARCHIVAL_MONTHS=24
# Referral Engine Configuration (Task 4)
REFERRAL_PROGRAM_ENABLED=true
REFERRAL_REFERRER_REWARD_MONTHS=1
REFERRAL_REFEREE_REWARD_MONTHS=1
REFERRAL_MAX_REFERRALS_PER_USER=10
REFERRAL_EXPIRY_DAYS=90
# Soroban configuration
SOROBAN_CONTRACT_ID=CAEGD57WVTVQSYWYB23AISBW334QO7WNA5XQ56S45GH6BP3D2AVHKUG4
DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
# Algorand Configuration
# Algorand Network Configuration
ALGOD_TOKEN=
ALGOD_SERVER=https://testnet-api.algonode.cloud
ALGOD_PORT=443
# PostgreSQL Database Configuration
DATABASE_URL=postgresql://username:password@localhost:5432/leaseflow_db
# OR use individual variables:
# DB_HOST=localhost
# DB_PORT=5432
# DB_NAME=leaseflow_db
# DB_USER=username
# DB_PASSWORD=password
# Email Configuration (for notifications)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
EMAIL_FROM=your-email@gmail.com
# SMS Configuration (Twilio)
TWILIO_ACCOUNT_SID=your-twilio-account-sid
TWILIO_AUTH_TOKEN=your-twilio-auth-token
TWILIO_PHONE_NUMBER=+1234567890
# Owner Configuration (for auto-reclaim)
# Owner Account (for executing reclaim transactions)
OWNER_MNEMONIC=
# Real-Time Rent Payment Tracker (Issue #16)
# Cron expression for how often to poll Horizon for new payments (default: every minute)
PAYMENT_TRACKER_CRON=* * * * *
# Override the Horizon base URL used by the payment tracker (defaults to testnet)
LEASEFLOW_HORIZON_URL=https://horizon-testnet.stellar.org
# Stellar Anchor KYC Configuration (SEP-12)
# The endpoint URL for your Stellar Anchor's SEP-12 API
STELLAR_ANCHOR_URL=https://your-anchor.com/sep12
# Authentication token/key for the anchor API
STELLAR_ANCHOR_AUTH_KEY=your-anchor-auth-key
# Horizon server URL (defaults to mainnet if not specified)
HORIZON_URL=https://horizon.stellar.org
# Sanctions Screening Configuration
# Enable/disable sanctions screening worker
SANCTIONS_SCREENING_ENABLED=true
# How often to run screening (cron expression) - default every 6 hours
SANCTIONS_SCREENING_INTERVAL_CRON=0 */6 * * *
# Cache TTL for sanctions lists in minutes - default 6 hours
SANCTIONS_CACHE_TTL_MINUTES=360
# OFAC API URL
SANCTIONS_OFAC_API_URL=https://api.treasury.gov/ofac/v1/sdn
# EU Sanctions API URL
SANCTIONS_EU_API_URL=https://webgate.ec.europa.eu/fsd/fsf/public/files/
# UK Sanctions API URL
SANCTIONS_UK_API_URL=https://www.gov.uk/government/publications/the-uk-sanctions-list
# Emergency Eviction Notice Service Configuration
# Email settings for legal notices (can use same as general email config)
FROM_EMAIL=noreply@leaseflow.protocol
# Stellar network for on-chain receipts
STELLAR_NETWORK=testnet
# For production use: STELLAR_NETWORK=public
# Sentry Error Tracking (Task 2 - Monitoring)
SENTRY_DSN=https://your-sentry-dsn@sentry.io/your-project-id
SENTRY_TRACES_SAMPLE_RATE=0.1
SENTRY_SAMPLE_RATE=1.0