summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-12-13 09:29:58 +0100
committermakefu <github@syntax-fehler.de>2021-12-13 09:29:58 +0100
commited065e8add0376384b8f23a016f0fedab13f7fd2 (patch)
tree1e596ac0432bb6d085d2861efee5f54bdea37e75 /krebs/2configs
parentd424c3f6af7c505d5ad64210d0a1b59af7483916 (diff)
parentf2533d88924feb48834a07c4dc1e82cd21acd025 (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/wiki.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/krebs/2configs/wiki.nix b/krebs/2configs/wiki.nix
index e7faca1f4..40d946f7d 100644
--- a/krebs/2configs/wiki.nix
+++ b/krebs/2configs/wiki.nix
@@ -29,6 +29,7 @@ in
{
services.gollum = {
enable = true;
+ address = "::1";
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://[::1]:${toString config.services.gollum.port}";
+ proxyWebsockets = true;
+ extraConfig = ''
+ proxy_set_header Host $host;
+ '';
+ };
};
};