diff options
author | Mark Longair <mhl@pobox.com> | 2012-10-02 17:50:20 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2012-10-03 09:57:27 +0100 |
commit | 7f88f5c55adb98d28ff6f5a12732875f0a52cd93 (patch) | |
tree | a96a9aa5bed246994390b31aa6906903121b3316 /conf/nginx.conf.example | |
parent | 423e5a6129d96a608bd3d1f876f069cf2eedc490 (diff) |
Password-protect the admin interface and make an empty password file
Diffstat (limited to 'conf/nginx.conf.example')
-rw-r--r-- | conf/nginx.conf.example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/nginx.conf.example b/conf/nginx.conf.example index c356da887..7b26afdbf 100644 --- a/conf/nginx.conf.example +++ b/conf/nginx.conf.example @@ -49,6 +49,12 @@ server { proxy_set_header X-Real-IP $remote_addr; } + location /admin { + auth_basic "FixMyStreet admin interface"; + auth_basic_user_file /var/www/fixmystreet/admin-htpasswd; + try_files $uri @catalyst; + } + location / { if (-f $document_root/down.html) { return 503; |