Update env for aws

This commit is contained in:
dvirlabs 2026-01-04 22:04:55 +02:00
parent e659b82905
commit 923ef9aed5
4 changed files with 20 additions and 14 deletions

View File

@ -2,9 +2,8 @@
DB_USER=recipes_user DB_USER=recipes_user
DB_PASSWORD=your_secure_password_here DB_PASSWORD=your_secure_password_here
DB_NAME=recipes_db DB_NAME=recipes_db
DB_HOST=your-rds-endpoint.region.rds.amazonaws.com DB_HOST=your-rds-endpoint.us-east-1.rds.amazonaws.com
DB_PORT=5432 DB_PORT=5432
DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
# Email Configuration # Email Configuration
SMTP_HOST=smtp.gmail.com SMTP_HOST=smtp.gmail.com
@ -26,13 +25,16 @@ AZURE_TENANT_ID=consumers
AZURE_REDIRECT_URI=https://your-domain.com/auth/azure/callback AZURE_REDIRECT_URI=https://your-domain.com/auth/azure/callback
# Cloudflare R2 Backup Configuration # Cloudflare R2 Backup Configuration
R2_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com # Get these from your Cloudflare dashboard -> R2 -> Manage R2 API Tokens
R2_ACCESS_KEY=your-r2-access-key R2_ENDPOINT=https://<account-id>.r2.cloudflarestorage.com
R2_SECRET_KEY=your-r2-secret-key R2_ACCESS_KEY=your-r2-access-key-id
R2_SECRET_KEY=your-r2-secret-access-key
R2_BUCKET_NAME=recipes-backups
# Automatic Backup Schedule # Automatic Backup Schedule
# Options: test (every 1 minute), daily, weekly, disabled # Options: test (every 1 minute), daily, weekly, disabled
BACKUP_INTERVAL=weekly BACKUP_INTERVAL=weekly
# Frontend API URL (for frontend container) # Frontend API URL (for frontend container to connect to backend via docker-compose)
VITE_API_URL=https://your-domain.com # Use the service name 'backend' from docker-compose.yaml
VITE_API_URL=http://backend:8000

View File

@ -2,9 +2,8 @@
DB_USER=recipes_user DB_USER=recipes_user
DB_PASSWORD=your_secure_password_here DB_PASSWORD=your_secure_password_here
DB_NAME=recipes_db DB_NAME=recipes_db
DB_HOST=your-rds-endpoint.region.rds.amazonaws.com DB_HOST=your-rds-endpoint.us-east-1.rds.amazonaws.com
DB_PORT=5432 DB_PORT=5432
DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
# Email Configuration # Email Configuration
SMTP_HOST=smtp.gmail.com SMTP_HOST=smtp.gmail.com
@ -26,13 +25,16 @@ AZURE_TENANT_ID=consumers
AZURE_REDIRECT_URI=https://your-domain.com/auth/azure/callback AZURE_REDIRECT_URI=https://your-domain.com/auth/azure/callback
# Cloudflare R2 Backup Configuration # Cloudflare R2 Backup Configuration
R2_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com # Get these from your Cloudflare dashboard -> R2 -> Manage R2 API Tokens
R2_ACCESS_KEY=your-r2-access-key R2_ENDPOINT=https://<account-id>.r2.cloudflarestorage.com
R2_SECRET_KEY=your-r2-secret-key R2_ACCESS_KEY=your-r2-access-key-id
R2_SECRET_KEY=your-r2-secret-access-key
R2_BUCKET_NAME=recipes-backups
# Automatic Backup Schedule # Automatic Backup Schedule
# Options: test (every 1 minute), daily, weekly, disabled # Options: test (every 1 minute), daily, weekly, disabled
BACKUP_INTERVAL=weekly BACKUP_INTERVAL=weekly
# Frontend API URL (for frontend container) # Frontend API URL (for frontend container to connect to backend via docker-compose)
VITE_API_URL=https://your-domain.com # Use the service name 'backend' from docker-compose.yaml
VITE_API_URL=http://backend:8000

View File

@ -41,6 +41,7 @@ services:
R2_ENDPOINT: ${R2_ENDPOINT} R2_ENDPOINT: ${R2_ENDPOINT}
R2_ACCESS_KEY: ${R2_ACCESS_KEY} R2_ACCESS_KEY: ${R2_ACCESS_KEY}
R2_SECRET_KEY: ${R2_SECRET_KEY} R2_SECRET_KEY: ${R2_SECRET_KEY}
R2_BUCKET_NAME: ${R2_BUCKET_NAME}
# Backup Schedule # Backup Schedule
BACKUP_INTERVAL: ${BACKUP_INTERVAL:-weekly} BACKUP_INTERVAL: ${BACKUP_INTERVAL:-weekly}

View File

@ -41,6 +41,7 @@ services:
R2_ENDPOINT: ${R2_ENDPOINT} R2_ENDPOINT: ${R2_ENDPOINT}
R2_ACCESS_KEY: ${R2_ACCESS_KEY} R2_ACCESS_KEY: ${R2_ACCESS_KEY}
R2_SECRET_KEY: ${R2_SECRET_KEY} R2_SECRET_KEY: ${R2_SECRET_KEY}
R2_BUCKET_NAME: ${R2_BUCKET_NAME}
# Backup Schedule # Backup Schedule
BACKUP_INTERVAL: ${BACKUP_INTERVAL:-weekly} BACKUP_INTERVAL: ${BACKUP_INTERVAL:-weekly}