diff options
author | Nils Gillmann <ng0@n0.is> | 2018-09-27 19:24:10 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-09-27 19:24:10 +0000 |
commit | 430db6a55226ea4a9c33e322edc4a3a7b325393c (patch) | |
tree | d9d0a25b6b3103bcda84d0aa32c007fa3c2d1302 /guix/etc/nginx/apps/drupal/admin_basic_auth.conf | |
parent | 82741d1288c8755bfdf57d0e0ce77d6ee121b913 (diff) | |
download | deployment-430db6a55226ea4a9c33e322edc4a3a7b325393c.tar.gz deployment-430db6a55226ea4a9c33e322edc4a3a7b325393c.tar.bz2 deployment-430db6a55226ea4a9c33e322edc4a3a7b325393c.zip |
complications with the way guix builds are made lead me to work on the content of etc in a copied, not symlinked location.
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'guix/etc/nginx/apps/drupal/admin_basic_auth.conf')
-rw-r--r-- | guix/etc/nginx/apps/drupal/admin_basic_auth.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/guix/etc/nginx/apps/drupal/admin_basic_auth.conf b/guix/etc/nginx/apps/drupal/admin_basic_auth.conf new file mode 100644 index 0000000..cc796ce --- /dev/null +++ b/guix/etc/nginx/apps/drupal/admin_basic_auth.conf @@ -0,0 +1,12 @@ +# -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*- + +## Protect the /admin URIs with a basic auth. +location ^~ /admin { + auth_basic "Restricted access"; #realm + auth_basic_user_file .htpasswd-users; + + ## Include the specific FastCGI configuration. This is for a + ## FCGI backend like php-cgi or php-fpm. + include apps/drupal/fastcgi_drupal.conf; + fastcgi_pass phpcgi; +} |