[variables]
main_domain = "${domain}"
postgres_user = "${username}"
db_password = "${password:32}"
storage_password = "${password:32}"
rabbitmq_user = "${username}"
rabbitmq_pass = "${password:32}"
secret_key = "${base64:48}"
live_secret_key = "${base64:32}"

[config]
env = [
"APP_DOMAIN=${main_domain}",
"WEB_URL=http://${main_domain}",
"PGHOST=plane-db",
"PGDATABASE=plane",
"POSTGRES_USER=${postgres_user}",
"POSTGRES_PASSWORD=${db_password}",
"POSTGRES_DB=plane",
"POSTGRES_PORT=5432",
"PGDATA=/var/lib/postgresql/data",
"DATABASE_URL=postgresql://${postgres_user}:${db_password}@plane-db/plane",
"REDIS_HOST=plane-redis",
"REDIS_PORT=6379",
"REDIS_URL=redis://plane-redis:6379/",
"RUSTFS_ACCESS_KEY=access-key",
"RUSTFS_SECRET_KEY=${storage_password}",
"RUSTFS_VOLUMES=/data",
"RUSTFS_ADDRESS=0.0.0.0:9000",
"RUSTFS_CONSOLE_ENABLE=false",
"AWS_REGION=",
"AWS_ACCESS_KEY_ID=access-key",
"AWS_SECRET_ACCESS_KEY=${storage_password}",
"AWS_S3_ENDPOINT_URL=http://plane-storage:9000",
"AWS_S3_BUCKET_NAME=uploads",
"BUCKET_NAME=uploads",
"FILE_SIZE_LIMIT=5242880",
"RABBITMQ_HOST=plane-mq",
"RABBITMQ_PORT=5672",
"RABBITMQ_USER=${rabbitmq_user}",
"RABBITMQ_PASSWORD=${rabbitmq_pass}",
"RABBITMQ_VHOST=plane",
"RABBITMQ_DEFAULT_USER=${rabbitmq_user}",
"RABBITMQ_DEFAULT_PASS=${rabbitmq_pass}",
"RABBITMQ_DEFAULT_VHOST=plane",
"AMQP_URL=amqp://${rabbitmq_user}:${rabbitmq_pass}@plane-mq:5672/plane",
"API_BASE_URL=http://api:8000",
"DEBUG=0",
"CORS_ALLOWED_ORIGINS=http://${main_domain}",
"GUNICORN_WORKERS=1",
"USE_MINIO=1",
"SECRET_KEY=${secret_key}",
"API_KEY_RATE_LIMIT=60/minute",
"MINIO_ENDPOINT_SSL=0",
"SITE_ADDRESS=:80",
"LIVE_SERVER_SECRET_KEY=${live_secret_key}"
]
mounts = []

[[config.domains]]
serviceName = "proxy"
port = 80
host = "${main_domain}"
