From 3efdd55d5cc2e784c6934e9d133f16844c324aad Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 8 May 2025 20:14:37 +0700 Subject: m --- hosts/cloud/sortug/nginx.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'hosts/cloud/sortug/nginx.nix') diff --git a/hosts/cloud/sortug/nginx.nix b/hosts/cloud/sortug/nginx.nix index 68a0c5b..5c129fb 100644 --- a/hosts/cloud/sortug/nginx.nix +++ b/hosts/cloud/sortug/nginx.nix @@ -58,6 +58,25 @@ proxyWebsockets = true; # needed if you need to use WebSocket }; }; + # polwex + virtualHosts."pw.sortug.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8091"; + # proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header Forwarded $proxy_add_x_forwarded_for; + ''; + }; + extraConfig = '' + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + ''; + }; virtualHosts."p.sortug.com" = { enableACME = true; forceSSL = true; @@ -76,6 +95,24 @@ proxy_cache off; ''; }; + virtualHosts."papa.sortug.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8924"; + # proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header Forwarded $proxy_add_x_forwarded_for; + ''; + }; + extraConfig = '' + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + ''; + }; virtualHosts."mcp.sortug.com" = { enableACME = true; forceSSL = true; -- cgit v1.2.3