{ config, pkgs, ... }: { security.acme.acceptTerms = true; security.acme.defaults.email = "security@urbit.cam"; services.nginx = { enable = true; virtualHosts."u.urbit.men" = { enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:8080"; # 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."n.urbit.men" = { enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:8090"; # 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."t.urbit.men" = { # enableACME = true; # forceSSL = true; # locations."/" = { # proxyPass = "http://127.0.0.1:8081"; # # 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; # ''; # }; }; }