diff options
| author | polwex <polwex@sortug.com> | 2025-08-28 00:32:56 +0000 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-08-28 00:32:56 +0000 |
| commit | b85eaebc4520326a0563007e543a0933d1bd446b (patch) | |
| tree | 43b022e20c25ea1f7a0cc923f01d6e0f584d312b /hosts/cloud/hetzner/nginx.nix | |
| parent | a61c5db40ee85f98e6f40417c73ef10ca566aa19 (diff) | |
s15stalwart
Diffstat (limited to 'hosts/cloud/hetzner/nginx.nix')
| -rw-r--r-- | hosts/cloud/hetzner/nginx.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hosts/cloud/hetzner/nginx.nix b/hosts/cloud/hetzner/nginx.nix index 2e88843..0e8dbb2 100644 --- a/hosts/cloud/hetzner/nginx.nix +++ b/hosts/cloud/hetzner/nginx.nix @@ -25,6 +25,25 @@ proxy_cache off; ''; }; + virtualHosts."n.urbit.cloud" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:12849"; + # TODO NIP 11 + 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."bridge.urbit.cloud" = { # enableACME = true; # forceSSL = true; @@ -48,6 +67,8 @@ forceSSL = true; serverAliases = [ "mail.urbit.cloud" + "autoconfig.urbit.cloud" + "autodiscover.urbit.cloud" "mta-sts.urbit.cloud" ]; locations."/" = { |
