Have nginx proxy websockets

main
Ashelyn Dawn 5 months ago
parent ba263f3eba
commit ada17cbac0

@ -113,7 +113,10 @@
};
services.nginx.virtualHosts.${cfg.appDomain} = {
locations."/" = { proxyPass = "http://127.0.0.1:${toString cfg.port}"; };
locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.port}";
proxyWebsockets = true;
};
locations."= /" = { return = "301 /@ashe"; };
forceSSL = true;
enableACME = true;

Loading…
Cancel
Save