# =============================================================================
# ArchiTools - Environment Configuration
# =============================================================================
# Copy to .env.local for local development, or .env for Docker deployment.
# Variables prefixed with NEXT_PUBLIC_ are exposed to the browser.

# Application
NEXT_PUBLIC_APP_NAME=ArchiTools
NEXT_PUBLIC_APP_URL=http://localhost:3000

# Storage adapter: 'localStorage' (default) | 'database'
NEXT_PUBLIC_STORAGE_ADAPTER=localStorage

# Feature flag overrides (set to 'true' or 'false')
# NEXT_PUBLIC_FLAG_MODULE_REGISTRATURA=true
# NEXT_PUBLIC_FLAG_MODULE_EMAIL_SIGNATURE=true
# NEXT_PUBLIC_FLAG_MODULE_WORD_XML=true
# NEXT_PUBLIC_FLAG_MODULE_PROMPT_GENERATOR=true
# NEXT_PUBLIC_FLAG_MODULE_DIGITAL_SIGNATURES=false
# NEXT_PUBLIC_FLAG_MODULE_PASSWORD_VAULT=false
# NEXT_PUBLIC_FLAG_MODULE_IT_INVENTORY=false
# NEXT_PUBLIC_FLAG_MODULE_ADDRESS_BOOK=false
# NEXT_PUBLIC_FLAG_MODULE_WORD_TEMPLATES=false
# NEXT_PUBLIC_FLAG_MODULE_TAG_MANAGER=true
# NEXT_PUBLIC_FLAG_MODULE_MINI_UTILITIES=false
# NEXT_PUBLIC_FLAG_MODULE_AI_CHAT=false

# =============================================================================
# PostgreSQL Database (required when STORAGE_ADAPTER=database)
# =============================================================================
DATABASE_URL=postgresql://USER:PASSWORD@10.10.10.166:5432/architools_db?schema=public

# =============================================================================
# MinIO Object Storage
# =============================================================================
MINIO_ENDPOINT=10.10.10.166
MINIO_PORT=9002
MINIO_USE_SSL=false
MINIO_ACCESS_KEY=admin
MINIO_SECRET_KEY=your-minio-secret
MINIO_BUCKET_NAME=tools

# =============================================================================
# Authentication (Authentik OIDC)
# =============================================================================
NEXTAUTH_URL=https://tools.beletage.ro
NEXTAUTH_SECRET=generate-with-openssl-rand-base64-32
AUTHENTIK_CLIENT_ID=your-authentik-client-id
AUTHENTIK_CLIENT_SECRET=your-authentik-client-secret
AUTHENTIK_ISSUER=https://auth.beletage.ro/application/o/architools/

# PMTiles rebuild webhook (pmtiles-webhook systemd service on satra)
N8N_WEBHOOK_URL=http://10.10.10.166:9876

# External tool URLs (displayed in dashboard)
NEXT_PUBLIC_GITEA_URL=http://10.10.10.166:3002
NEXT_PUBLIC_PORTAINER_URL=http://10.10.10.166:9000
NEXT_PUBLIC_MINIO_URL=http://10.10.10.166:9003
NEXT_PUBLIC_N8N_URL=http://10.10.10.166:5678
NEXT_PUBLIC_STIRLING_PDF_URL=http://10.10.10.166:8087
NEXT_PUBLIC_IT_TOOLS_URL=http://10.10.10.166:8085
NEXT_PUBLIC_FILEBROWSER_URL=http://10.10.10.166:8086
NEXT_PUBLIC_UPTIME_KUMA_URL=http://10.10.10.166:3001
NEXT_PUBLIC_NETDATA_URL=http://10.10.10.166:19999
NEXT_PUBLIC_DOZZLE_URL=http://10.10.10.166:9999
NEXT_PUBLIC_CROWDSEC_URL=http://10.10.10.166:8088
NEXT_PUBLIC_AUTHENTIK_URL=http://10.10.10.166:9100
