From 886532670b2d3f91f615a63f6b82f2512a641acc Mon Sep 17 00:00:00 2001 From: polwex Date: Sat, 4 Jan 2025 04:08:05 +0700 Subject: m --- hosts/cloud/bkk/nginx.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'hosts/cloud/bkk/nginx.nix') diff --git a/hosts/cloud/bkk/nginx.nix b/hosts/cloud/bkk/nginx.nix index ea6b785..3314674 100644 --- a/hosts/cloud/bkk/nginx.nix +++ b/hosts/cloud/bkk/nginx.nix @@ -25,6 +25,24 @@ proxy_cache off; ''; }; + virtualHosts."p.urbit.men" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8083"; + # 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 = '' + chunked_transfer_encoding off; + proxy_http_version 1.1; + proxy_buffering off; + proxy_cache off; + ''; + }; virtualHosts."head.urbit.men" = { enableACME = true; forceSSL = true; -- cgit v1.2.3