2026-08-11 21:34:02 +03:30
|
|
|
# Copy to deploy/replicas.env on the publisher host (gitignored — holds passwords).
|
|
|
|
|
#
|
2026-08-17 16:01:55 +03:30
|
|
|
# One DSN per line (or comma). Do not put spaces between URLs.
|
|
|
|
|
# Prefer URI form. Password must not contain @ : / # ? — or URL-encode it.
|
|
|
|
|
# Keyword form (host=...) is OK only because the script splits on newlines, not spaces.
|
2026-08-18 12:32:30 +03:30
|
|
|
# The user must be able to run ALTER TABLE + ALTER SUBSCRIPTION + TRUNCATE on each replica.
|
2026-08-11 21:34:02 +03:30
|
|
|
REPLICA_DSNS="postgresql://USER:PASSWORD@SLAVE_1_IP:5433/superadmin
|
|
|
|
|
postgresql://USER:PASSWORD@SLAVE_2_IP:5432/superadmin"
|
2026-08-18 12:32:30 +03:30
|
|
|
|
|
|
|
|
# Read-only app user on replicas (program-settings API). Grants re-applied after data repair.
|
|
|
|
|
# REPLICA_APP_DB_USER=montime
|
2026-08-18 12:41:23 +03:30
|
|
|
|
2026-08-18 15:09:59 +03:30
|
|
|
# Optional. If TCP 127.0.0.1:15432 is refused, omit this — the script falls back
|
|
|
|
|
# to unix socket / `runuser -u postgres` on port 15432.
|
|
|
|
|
# PUBLISHER_DSN="host=/var/run/postgresql port=15432 dbname=superadmin user=postgres"
|