summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/nginx/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-03-25 00:58:45 +0000
committerRobin Gloster <mail@glob.in>2016-07-28 11:59:13 +0000
commite18f8e8b6614499794ef704f0272bf986a906b78 (patch)
treebd8d5820fa8d9ecef111bfea840b3dc6fb1c9f8d /nixos/modules/services/web-servers/nginx/default.nix
parent4e5c7913e9db6906b031bb8310ba811f533854d3 (diff)
downloadnixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.tar
nixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.tar.gz
nixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.tar.bz2
nixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.tar.lz
nixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.tar.xz
nixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.tar.zst
nixpkgs-e18f8e8b6614499794ef704f0272bf986a906b78.zip
nginx module: turn off basic auth on acme locations
Diffstat (limited to 'nixos/modules/services/web-servers/nginx/default.nix')
-rw-r--r--nixos/modules/services/web-servers/nginx/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix
index e48e9b6cfd8..b2bcb737a8f 100644
--- a/nixos/modules/services/web-servers/nginx/default.nix
+++ b/nixos/modules/services/web-servers/nginx/default.nix
@@ -82,8 +82,10 @@ let
           location /.well-known/acme-challenge {
             try_files $uri @acme-fallback;
             root ${vhost.acmeRoot};
+            auth_basic off;
           }
           location @acme-fallback {
+            auth_basic off;
             proxy_pass http://${vhost.acmeFallbackHost};
           }
         '';