mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: harden the postgres default password
This commit is contained in:
parent
418592178c
commit
49e68b49d5
4 changed files with 24 additions and 2 deletions
|
|
@ -251,6 +251,7 @@ echo -e "${GREEN}✓ SSL certificates generated${NC}"
|
|||
|
||||
echo -e "${BLUE}[4/$TOTAL] Creating environment file...${NC}"
|
||||
OSS_JWT_SECRET=$(openssl rand -hex 32)
|
||||
POSTGRES_PASSWORD=$(openssl rand -hex 32)
|
||||
|
||||
cat > .env << ENV_EOF
|
||||
# Remote deployments run with production signaling and HTTPS defaults
|
||||
|
|
@ -276,6 +277,11 @@ FORCE_TURN_RELAY=$FORCE_TURN_RELAY
|
|||
# JWT secret for OSS authentication
|
||||
OSS_JWT_SECRET=$OSS_JWT_SECRET
|
||||
|
||||
# PostgreSQL password. Used by the postgres container on first init and by the
|
||||
# API's DATABASE_URL. Do not change after the first start — the password is
|
||||
# baked into the postgres data volume when it is first created.
|
||||
POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
|
||||
# Telemetry (set to false to disable)
|
||||
ENABLE_TELEMETRY=$ENABLE_TELEMETRY
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue