summaryrefslogtreecommitdiff
path: root/hosts/cloud/hetzner/nginx.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-07-06 15:48:43 +0000
committerpolwex <polwex@sortug.com>2025-07-06 15:48:43 +0000
commit93a42a56aa50d00fd2e521acd8213a0dfc3612c9 (patch)
treed05a79e44b02469fa53629b777590cb3422c1853 /hosts/cloud/hetzner/nginx.nix
parent20b769da0c2d91ef9ff1a804eb050615e6de7e15 (diff)
Diffstat (limited to 'hosts/cloud/hetzner/nginx.nix')
-rw-r--r--hosts/cloud/hetzner/nginx.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/cloud/hetzner/nginx.nix b/hosts/cloud/hetzner/nginx.nix
index 4a6d708..1077e71 100644
--- a/hosts/cloud/hetzner/nginx.nix
+++ b/hosts/cloud/hetzner/nginx.nix
@@ -25,5 +25,23 @@
proxy_cache off;
'';
};
+ virtualHosts."webmail.urbit.cloud" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:8888";
+ # 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;
+ '';
+ };
};
}