From 59ab4467b69f3ba455ef23163cfc4543338d8a41 Mon Sep 17 00:00:00 2001 From: polwex Date: Fri, 21 Feb 2025 15:57:54 +0700 Subject: m --- hosts/cloud/sortug/nginx.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'hosts/cloud/sortug') 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; -- cgit v1.2.3