# Required settings for docker-compose
HOST_IP=192.168.1.10
BIND_ADDR=0.0.0.0
PORT=3334
# Admin/UI (local or LAN)
ADMIN_BIND_ADDR=0.0.0.0
ADMIN_PORT=3335

# IPFS API (docker: service name)
IPFS_API_URL=http://ipfs:5001
IPFS_HTTP_TIMEOUT=5m
IPFS_PIN_TIMEOUT=17m

# Gateway URLs returned to clients
# Primary (use your domain/gateway if you have one)
IPFS_GATEWAY_PROXY_URL=http://ipfs:8080
IPFS_GATEWAY_URL=https://ipfstr.example.com/ipfs/
# Optional fallback (public gateway)
IPFS_GATEWAY_FALLBACK_URL=https://dweb.link/ipfs/

# Public base URL for Blossom (what Nostr clients use)
SERVICE_URL=https://ipfstr.example.com

# Data + limits
DATABASE_PATH=/data/ipfstr.db
FILE_LIMIT=5GB
STORAGE_MAX=200GB
# Pin uploads immediately on add
PIN_UPLOADS=true
CORS_ORIGINS=*

# Nostr settings
NPUB=npub1examplexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NOSTR_RELAYS=wss://relay.damus.io,wss://nos.lol,wss://librerelay.aaroniumii.com,wss://relay.snort.social,wss://nostr.mom
NOSTR_DISCOVERY_INTERVAL=7m
NOSTR_PINNER_MIN_DELAY=30s
NOSTR_PINNER_MAX_DELAY=100s
NOSTR_LOOKBACK=720h

# Overrides IPFS is if running outside Docker
# IPFS_API_URL=http://${HOST_IP}:5002
# IPFS_GATEWAY_PROXY_URL=http://${HOST_IP}:8081

# Use this examples if you do not have domain and to use public gateway
# IPFS_GATEWAY_URL=https://dweb.link/ipfs/
# IPFS_GATEWAY_FALLBACK_URL=
# SERVICE_URL=http://${HOST_IP}:3334
