mirror of
https://github.com/KohakuBlueleaf/KohakuHub.git
synced 2026-03-11 17:34:08 -05:00
explicit placeholder for passwd/username in pgsql connection
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user