summaryrefslogtreecommitdiff
path: root/hosts/cloud/sortug
diff options
context:
space:
mode:
authorpolwex <code@yago.one>2025-02-21 08:59:27 +0000
committerpolwex <code@yago.one>2025-02-21 08:59:27 +0000
commitc0be55eb72fdad38de6e1c72a52b1500216c3043 (patch)
treec053679bb21a023e115a0ab5f96d7926bd05d3c2 /hosts/cloud/sortug
parentfb39334bcdac65a1ff1d95e7e4db2e28eabcc2d6 (diff)
parent59ab4467b69f3ba455ef23163cfc4543338d8a41 (diff)
Merge pull request 'nvidia-wayland' (#1) from nvidia-wayland into master
Reviewed-on: https://git.sortug.com/polwex/nixconf/pulls/1
Diffstat (limited to 'hosts/cloud/sortug')
-rw-r--r--hosts/cloud/sortug/nginx.nix20
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;