Skip to content

Commit

Permalink
Move nginx extra config in to location
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Sep 18, 2024
1 parent e2b3e9d commit c40e2b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ in {
locations."/" = {
inherit proxyPass;
proxyWebsockets = true;
};

extraConfig = ''
proxy_buffering off;
'';
extraConfig = ''
proxy_buffering off;
'';
};
};

"${config.networking.hostName}.local" = {
Expand Down
12 changes: 6 additions & 6 deletions configuration/devices/headless/server/log-management.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}";
proxyWebsockets = true;
basicAuth = secrets.nginx.basicAuth."grafana.00a.ch";
};

extraConfig = ''
satisfy any;
extraConfig = ''
satisfy any;
allow 192.168.1.0/24;
deny all;
'';
allow 192.168.1.0/24;
deny all;
'';
};
};
};

Expand Down
12 changes: 6 additions & 6 deletions configuration/devices/headless/server/monitoring.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.monitoring.webPort}";
basicAuth = secrets.nginx.basicAuth."monitoring.00a.ch";
};

extraConfig = ''
satisfy any;
extraConfig = ''
satisfy any;
allow 192.168.1.0/24;
deny all;
'';
allow 192.168.1.0/24;
deny all;
'';
};
};
};

Expand Down

0 comments on commit c40e2b7

Please sign in to comment.