summaryrefslogtreecommitdiff
path: root/adonis/autopush
diff options
context:
space:
mode:
authortoufic ar <contact@toufy.me>2026-08-06 14:45:24 +0300
committertoufic ar <contact@toufy.me>2026-08-06 14:45:24 +0300
commitec9b54e405d20fc19d49b2f85be5e02a8efcb02e (patch)
tree4f52fef937f86f7533391204a9a21c2e3f605d31 /adonis/autopush
parent3630e19176ca7205ab86241d94853f43c24f7fc6 (diff)
downloadservers-ec9b54e405d20fc19d49b2f85be5e02a8efcb02e.tar.gz
servers-ec9b54e405d20fc19d49b2f85be5e02a8efcb02e.zip
adonis/autopush: nginx vhost location reorder?
Diffstat (limited to 'adonis/autopush')
-rw-r--r--adonis/autopush/default.nix30
1 files changed, 15 insertions, 15 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix
index dae2863..6a160d3 100644
--- a/adonis/autopush/default.nix
+++ b/adonis/autopush/default.nix
@@ -64,32 +64,32 @@ in {
forceSSL = true;
enableACME = true;
locations = {
+ "/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;
+ '';
+ };
"/" = {
proxyPass = "http://127.0.0.1:8080";
extraConfig = ''
proxy_http_version 1.1;
- 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;
- proxy_connect_timeout 3m;
+ 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;
+ proxy_connect_timeout 3m;
proxy_send_timeout 3m;
proxy_read_timeout 3m;
- client_max_body_size 0;
+ client_max_body_size 0;
proxy_buffering off;
proxy_request_buffering off;
proxy_redirect off;
'';
};
- "/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}" = {