explicit placeholder for passwd/username in pgsql connection

This commit is contained in:
Kohaku-Blueleaf
2025-10-29 16:13:54 +08:00
parent c0efc9a026
commit 111ead8706
3 changed files with 7 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ services:
## ===== CRITICAL: Shared Database with KohakuHub =====
## Use the EXACT same database as KohakuHub for unified accounts
- KOHAKU_BOARD_DB_BACKEND=postgres
- KOHAKU_BOARD_DATABASE_URL=postgresql://hub:hubpass@postgres:5432/kohakuhub
- KOHAKU_BOARD_DATABASE_URL=postgresql://<user>:<password>@postgres:5432/kohakuhub
## ===== CRITICAL: Shared Session Secret for SSO =====
## Must match KohakuHub's session secret for single sign-on

View File

@@ -41,7 +41,7 @@ services:
## ===== Database Configuration =====
- KOHAKU_HUB_DB_BACKEND=postgres
- KOHAKU_HUB_DATABASE_URL=postgresql://hub:hubpass@postgres:5432/kohakuhub
- KOHAKU_HUB_DATABASE_URL=postgresql://<user>:<password>@postgres:5432/kohakuhub
- KOHAKU_HUB_AUTO_MIGRATE=true # Auto-confirm database migrations (required for Docker)
## ===== S3 Storage Configuration =====
@@ -136,8 +136,8 @@ services:
container_name: postgres
restart: always
environment:
- POSTGRES_USER=hub
- POSTGRES_PASSWORD=hubpass
- POSTGRES_USER=<user>
- POSTGRES_PASSWORD=<password>
- POSTGRES_DB=kohakuhub
ports:
- "25432:5432" # Optional: for external access

View File

@@ -34,7 +34,7 @@ services:
# Option 2: PostgreSQL (uncomment for production)
# - KOHAKU_BOARD_DB_BACKEND=postgres
# - KOHAKU_BOARD_DATABASE_URL=postgresql://board:boardpass@postgres-board:5432/kohakuboard
# - KOHAKU_BOARD_DATABASE_URL=postgresql://<user>:<password>@postgres-board:5432/kohakuboard
## ===== Authentication Configuration =====
- KOHAKU_BOARD_AUTH_SESSION_SECRET=change-me-in-production
@@ -66,8 +66,8 @@ services:
# container_name: postgres-board
# restart: always
# environment:
# - POSTGRES_USER=board
# - POSTGRES_PASSWORD=boardpass
# - POSTGRES_USER=<user>
# - POSTGRES_PASSWORD=<password>
# - POSTGRES_DB=kohakuboard
# ports:
# - "25433:5432" # Optional: for external access