modules/nixos: add nginx
- set worker_processes / worker_cpu_affinity to auto, enable pcre_jit - enable ktls - set a default virtualHost for a 404 and use it for reuseport - set enableACME, forceSSL by default, disable for localhost - set robots header and file
This commit is contained in:
parent
cf8fc93213
commit
01c2beb7b4
10 changed files with 60 additions and 21 deletions
modules/nixos/monitoring
|
@ -11,8 +11,6 @@
|
|||
sops.secrets.nginx-basic-auth-file.owner = "nginx";
|
||||
|
||||
services.nginx.virtualHosts."monitoring.nix-community.org" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".return = "302 https://nix-community.org/monitoring";
|
||||
locations."/alertmanager/" = {
|
||||
basicAuthFile = config.sops.secrets.nginx-basic-auth-file.path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue