diff options
Diffstat (limited to 'hosts/cloud')
-rw-r--r-- | hosts/cloud/sortug/nginx.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/hosts/cloud/sortug/nginx.nix b/hosts/cloud/sortug/nginx.nix index 78e93b8..68a0c5b 100644 --- a/hosts/cloud/sortug/nginx.nix +++ b/hosts/cloud/sortug/nginx.nix @@ -27,7 +27,7 @@ enableACME = true; forceSSL = true; locations."/stt" = { - proxyPass = "http://127.0.0.1:8000"; + proxyPass = "http://127.0.0.1:8010"; extraConfig = '' proxy_connect_timeout 300s; proxy_send_timeout 300s; @@ -76,6 +76,24 @@ proxy_cache off; ''; }; + virtualHosts."mcp.sortug.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8000"; + 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."line.sortug.com" = { enableACME = true; forceSSL = true; |