diff options
Diffstat (limited to 'hosts/cloud/hetzner/nginx.nix')
-rw-r--r-- | hosts/cloud/hetzner/nginx.nix | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/hosts/cloud/hetzner/nginx.nix b/hosts/cloud/hetzner/nginx.nix index 1077e71..2e88843 100644 --- a/hosts/cloud/hetzner/nginx.nix +++ b/hosts/cloud/hetzner/nginx.nix @@ -25,12 +25,34 @@ proxy_cache off; ''; }; + # virtualHosts."bridge.urbit.cloud" = { + # enableACME = true; + # forceSSL = true; + # locations."/" = { + # proxyPass = "http://127.0.0.1:4444"; + # # 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."webmail.urbit.cloud" = { enableACME = true; forceSSL = true; + serverAliases = [ + "mail.urbit.cloud" + "mta-sts.urbit.cloud" + ]; locations."/" = { proxyPass = "http://127.0.0.1:8888"; - # proxyWebsockets = true; # needed if you need to use WebSocket + proxyWebsockets = true; # needed if you need to use WebSocket extraConfig = '' proxy_set_header Host $host; proxy_set_header Forwarded $proxy_add_x_forwarded_for; |