diff options
| author | Luke Hoersten <[email protected]> | 2026-07-30 18:19:08 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-30 18:19:08 -0500 |
| commit | 00e966edfe45e594e8491bda3a235b7a7964f759 (patch) | |
| tree | 82bd2460b45b2b7dfa6689192f2400a849928b6d /nostr | |
| parent | 006ecfb2c80aeeb609c28534828bbcb5cff3333e (diff) | |
dendrite, relayer: percent-encode db passwords in connection urls
Passwords containing '/' are invalid unencoded in a url authority and
break Go's url.Parse (invalid port after host). Latent until a restart
forced a config re-read. jinja urlencode leaves '/' unescaped, hence
the extra replace.
Diffstat (limited to 'nostr')
| -rw-r--r-- | nostr/relayer/templates/relayer.env.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nostr/relayer/templates/relayer.env.j2 b/nostr/relayer/templates/relayer.env.j2 index 9acacca..b51412c 100644 --- a/nostr/relayer/templates/relayer.env.j2 +++ b/nostr/relayer/templates/relayer.env.j2 @@ -1,4 +1,4 @@ -POSTGRESQL_DATABASE=postgres://{{relayer_db_user}}:{{relayer_db_pass}}@localhost:5432/{{relayer_db}} +POSTGRESQL_DATABASE=postgres://{{relayer_db_user}}:{{relayer_db_pass | urlencode | replace("/", "%2F")}}@localhost:5432/{{relayer_db}} WHITELIST={{relayer_pubkey}} HOST=127.0.0.1 PORT={{relayer_port}} |
