Public Access
fix(account): require the Core internal URL
The localhost default pointed Auth at itself in Docker, so the nightly cleanup failed silently at 04:15. Without a default a missing APP_CORE_INTERNAL_URL stops the start.
This commit is contained in:
1 parent
2ba0d99148
commit
ff26760d40
2 files changed
+4
-2
No files matched your search
@@ -210,6 +210,7 @@ Configuration comes from environment variables:
|
||||
| `DB_PASSWORD` | Local PostgreSQL password |
|
||||
| `APP_PUBLIC_URL` | Auth's public address, the Steam OpenID realm (default `http://localhost:8080`) |
|
||||
| `APP_FRONTEND_URL` | Where the Steam link ends (default `http://localhost:5173`) |
|
||||
| `APP_CORE_INTERNAL_URL` | Core for the nightly account cleanup, required (local `http://localhost:8090`, Docker `http://tbp-core-service:8090`) |
|
||||
|
||||
Generate a keypair:
|
||||
|
||||
|
||||
@@ -60,8 +60,9 @@ app:
|
||||
# Where the user lands after the Steam link.
|
||||
frontend-url: ${APP_FRONTEND_URL:http://localhost:5173}
|
||||
core:
|
||||
# Core inside the Docker network, for the account cleanup calls.
|
||||
internal-url: ${APP_CORE_INTERNAL_URL:http://localhost:8090}
|
||||
# Core inside the Docker network, for the account cleanup calls. No default: a wrong URL fails only at the
|
||||
# nightly run, a missing one stops the start.
|
||||
internal-url: ${APP_CORE_INTERNAL_URL}
|
||||
account-cleanup:
|
||||
cron: "0 15 4 * * *"
|
||||
# How long a deleted account waits before the cleanup removes it for good.
|
||||
|
||||
Reference in new issue
Block a user