diff options
author | lassulus <lassulus@lassul.us> | 2021-12-10 10:13:49 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-12-10 10:13:49 +0100 |
commit | 9841e402e2692a6eb37d5a5b89a53474168af590 (patch) | |
tree | 5cab2a8d921cc3b8f96c7058decbe2ecc241ddc7 | |
parent | 6d3ea779b6d6114120bd5d2510ca5870c3012e0c (diff) |
wiki.r: listen on localhost, fix http redirect
-rw-r--r-- | krebs/2configs/wiki.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/krebs/2configs/wiki.nix b/krebs/2configs/wiki.nix index e7faca1f4..aa6948269 100644 --- a/krebs/2configs/wiki.nix +++ b/krebs/2configs/wiki.nix @@ -29,6 +29,7 @@ in { services.gollum = { enable = true; + address = "::"; extraConfig = '' Gollum::Hook.register(:post_commit, :hook_id) do |committer, sha1| system('${pushCgit}') @@ -45,12 +46,13 @@ in virtualHosts."wiki.r" = { enableACME = true; addSSL = true; - locations."/".extraConfig = '' - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_pass http://127.0.0.1:${toString config.services.gollum.port}; - ''; + locations."/" = { + proxyPass = "http://[::]:${toString config.services.gollum.port}"; + proxyWebsockets = true; + extraConfig = '' + proxy_set_header Host $host; + ''; + }; }; }; |