Have nginx proxy websockets

main
Ashelyn Dawn 9 months ago
parent ba263f3eba
commit ada17cbac0

@ -113,7 +113,10 @@
}; };
services.nginx.virtualHosts.${cfg.appDomain} = { 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"; }; locations."= /" = { return = "301 /@ashe"; };
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;

Loading…
Cancel
Save