diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-12-10 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-12-10 23:04:57 +0100 |
commit | a768871934dd263423fca2979cedd7f5e8c7379d (patch) | |
tree | eb79d96d321e27d4456366c8d58f655f76fe6ca9 /nixos/tests/nginx.nix | |
parent | 2787fc7d1e51404678614bf0fe92fc296746eec0 (diff) |
nixos/nginx: validate syntax of config file at build time
Shamelessly stolen from nixcloud-webservices: https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/web/webserver/lib/nginx_check_config.nix The nixos test testing the behavior of nginx in case of faulty config would not build with this change (on purpose), so I modified it so that the failure is not syntactic.
Diffstat (limited to 'nixos/tests/nginx.nix')
-rw-r--r-- | nixos/tests/nginx.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/nginx.nix b/nixos/tests/nginx.nix index d9d073822a145..73f1133bd6ca9 100644 --- a/nixos/tests/nginx.nix +++ b/nixos/tests/nginx.nix @@ -61,7 +61,7 @@ import ./make-test-python.nix ({ pkgs, ... }: { specialisation.reloadWithErrorsSystem.configuration = { services.nginx.package = pkgs.nginxMainline; - services.nginx.virtualHosts."!@$$(#*%".locations."~@#*$*!)".proxyPass = ";;;"; + services.nginx.virtualHosts."hello".extraConfig = "access_log /does/not/exist.log;"; }; }; }; |