diff options
| author | toufic ar <contact@toufy.me> | 2026-08-06 14:34:22 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-08-06 14:34:22 +0300 |
| commit | 61073238bde723c0f4c02e7448f5b568d3715b0b (patch) | |
| tree | 036a91bd755b323434063f96b1d7c60d7ed76bf4 /adonis/autopush | |
| parent | 2e022b88399932b45e076c9bce598a132818cb62 (diff) | |
| download | servers-61073238bde723c0f4c02e7448f5b568d3715b0b.tar.gz servers-61073238bde723c0f4c02e7448f5b568d3715b0b.zip | |
adonis/autopush: enable mollysocket support
Diffstat (limited to 'adonis/autopush')
| -rw-r--r-- | adonis/autopush/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix index d24aadc..0ab536f 100644 --- a/adonis/autopush/default.nix +++ b/adonis/autopush/default.nix @@ -80,7 +80,15 @@ in { proxy_redirect off; ''; }; - "/mollysocket".proxyPass = "http://127.0.0.1:8020"; + "/mollysocket" = { + proxyPass = "http://127.0.0.1:8020"; + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + ''; + }; }; }; services.nginx.virtualHosts."updates.${domain}" = { |
