diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-12-09 09:15:23 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-12-09 09:15:23 -0800 |
| commit | 543fcc38c9c48349d6988b1ace119f0cef2d6efa (patch) | |
| tree | ae8174b09797fd19e365f60bf25a9d20b222c855 /profiles/nginx.nix | |
| parent | install kind / configure the dock (diff) | |
| download | infra-543fcc38c9c48349d6988b1ace119f0cef2d6efa.tar.gz | |
delete even more unused configurations
Diffstat (limited to 'profiles/nginx.nix')
| -rw-r--r-- | profiles/nginx.nix | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/profiles/nginx.nix b/profiles/nginx.nix deleted file mode 100644 index e32106f..0000000 --- a/profiles/nginx.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ pkgs, lib, config, ... }: -{ - services.nginx = { - enable = true; - - # For monitoring scraping. If we don't set a default port, it will - # by default use port 80, which will conflict with the - # configuration of the router, since we need to listen on port 80 - # too for streaming. - statusPage = true; - defaultHTTPListenPort = 8008; - - recommendedGzipSettings = true; - recommendedOptimisation = true; - recommendedTlsSettings = true; - recommendedProxySettings = true; - }; - - services.prometheus.exporters.nginx = { - enable = true; - scrapeUri = "http://127.0.0.1:${toString config.services.nginx.defaultHTTPListenPort}/nginx_status"; - listenAddress = "127.0.0.1"; - port = 9113; - }; - - # Nginx needs to be able to read the certificates - users.users.nginx.extraGroups = [ "acme" ]; - - networking.firewall.allowedTCPPorts = [ 80 443 ]; -} |
