File tree Expand file tree Collapse file tree 1 file changed +23
-13
lines changed
Expand file tree Collapse file tree 1 file changed +23
-13
lines changed Original file line number Diff line number Diff line change 753753
754754 services . nginx . enable = true ;
755755 services . nginx . virtualHosts . ${ cfg . domain } = {
756- locations = {
757- "/" . proxyPass = "http://127.0.0.1:${ builtins . toString backendPort } /" ;
758- "/sse" = {
759- proxyPass = "http://127.0.0.1:${ builtins . toString backendPort } /sse" ;
760- # proxy buffering will prevent sse to work
761- extraConfig = "proxy_buffering off;" ;
762- } ;
763- "/ws" = {
764- proxyPass = "http://127.0.0.1:${ builtins . toString backendPort } /ws" ;
765- proxyWebsockets = true ;
766- # raise the proxy timeout for the websocket
767- extraConfig = "proxy_read_timeout 6000s;" ;
756+ locations =
757+ {
758+ "/" . proxyPass = "http://127.0.0.1:${ builtins . toString backendPort } /" ;
759+ "/sse" = {
760+ proxyPass = "http://127.0.0.1:${ builtins . toString backendPort } /sse" ;
761+ # proxy buffering will prevent sse to work
762+ extraConfig = "proxy_buffering off;" ;
763+ } ;
764+ "/ws" = {
765+ proxyPass = "http://127.0.0.1:${ builtins . toString backendPort } /ws" ;
766+ proxyWebsockets = true ;
767+ # raise the proxy timeout for the websocket
768+ extraConfig = "proxy_read_timeout 6000s;" ;
769+ } ;
770+ }
771+ // lib . optionalAttrs ( cfg . outputsPath != null ) {
772+ "/nix-outputs/" = {
773+ alias = cfg . outputsPath ;
774+ extraConfig = ''
775+ charset utf-8;
776+ autoindex on;
777+ '' ;
778+ } ;
768779 } ;
769- } // lib . optionalAttrs ( cfg . outputsPath != null ) { "/nix-outputs/" . alias = cfg . outputsPath ; } ;
770780 } ;
771781
772782 systemd . tmpfiles . rules =
You can’t perform that action at this time.
0 commit comments