mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
k3s
: fix heisenbridge
not being reachable from synapse
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
3aef60fee8
commit
0b6b4e17cb
|
@ -20,15 +20,14 @@
|
|||
|
||||
init.services.heisenbridge = {
|
||||
enabled = true;
|
||||
# heisenbridge needs to retry the connection and task restarting does not work currently
|
||||
shutdownOnExit = false;
|
||||
shutdownOnExit = true;
|
||||
script = pkgs.writeShellScript "heisenbridge" ''
|
||||
REGISTRATION_FILE="/var/lib/registrations/heisenbridge.yaml"
|
||||
|
||||
${getExe' pkgs.heisenbridge "heisenbridge"} 'https://matrix.redalder.org/' \
|
||||
-c "$REGISTRATION_FILE" \
|
||||
$([ -e "$REGISTRATION_FILE" ] || echo "--generate") \
|
||||
-l 127.0.0.1 \
|
||||
-l 0.0.0.0 \
|
||||
-p 9898 \
|
||||
-o @magic_rb:matrix.redalder.org
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue