Skip to content

Commit

Permalink
fix: socket over nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jul 21, 2024
1 parent 02a97c4 commit fec03f3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/nixos/nginx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,17 @@ in {
'';

upstreams = {
"${FrappeWebUpstream}".servers."unix:${cfg.webSocket} fail_timeout=0" = {};
"${NodeSocketIOUpstream}".servers."unix:${cfg.socketIOSocket} fail_timeout=0" = {};
"${FrappeWebUpstream}".servers."unix:${cfg.webSocket}" = {
fail_timeout = 0;
};
"${NodeSocketIOUpstream}" = {
servers."unix:${cfg.socketIOSocket}" = {
fail_timeout = 0;
};
extraConfig = ''
keepalive 32;
'';
};
};

virtualHosts = flip mapAttrs cfg.sites (site-folder: site: let
Expand Down

0 comments on commit fec03f3

Please sign in to comment.