mirror of
https://github.com/Dvorinka/Productier.git
synced 2026-06-03 20:13:01 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Productier Backend Remote Deployment Environment
|
||||
# Copy to .env for remote/self-hosted deployment
|
||||
|
||||
# Application Environment
|
||||
APP_ENV=production
|
||||
API_PORT=8080
|
||||
API_SHUTDOWN_TIMEOUT=15s
|
||||
|
||||
# Database (REQUIRED - update with your PostgreSQL connection)
|
||||
DATABASE_URL=postgres://productier:your-secure-password@your-postgres-host:5432/productier?sslmode=require
|
||||
|
||||
# Auth Service (REQUIRED - URL where auth service is accessible)
|
||||
AUTH_SERVICE_URL=http://your-auth-host:3001
|
||||
|
||||
# Secrets (REQUIRED - generate strong random secrets)
|
||||
BETTER_AUTH_SECRET=generate-a-32-plus-char-random-secret-here
|
||||
MAIL_ENCRYPTION_KEY=generate-another-32-plus-char-random-secret-here
|
||||
|
||||
# CORS (REQUIRED - comma-separated allowed origins)
|
||||
CORS_ALLOW_ORIGINS=https://your-frontend-domain.com,https://your-api-domain.com
|
||||
|
||||
# File Storage
|
||||
FILE_STORAGE_PROVIDER=local
|
||||
FILE_STORAGE_DIR=/tmp/uploads
|
||||
|
||||
# Optional: S3-compatible storage
|
||||
# FILE_STORAGE_PROVIDER=s3
|
||||
# S3_ENDPOINT=https://your-s3-endpoint
|
||||
# S3_REGION=us-east-1
|
||||
# S3_BUCKET=productier
|
||||
# S3_ACCESS_KEY=your-access-key
|
||||
# S3_SECRET_KEY=your-secret-key
|
||||
# S3_USE_PATH_STYLE=false
|
||||
|
||||
# Optional: Metrics auth token
|
||||
# METRICS_AUTH_TOKEN=your-metrics-token
|
||||
|
||||
# Database migrations directory
|
||||
DB_MIGRATIONS_DIR=/app/migrations
|
||||
Reference in New Issue
Block a user