Allow sites to set HTTP basic authentication through nginx.

This commit is contained in:
Guo Xiang Tan
2016-01-08 12:49:17 +08:00
parent 3b45cd0fcb
commit 9f05361f14
+3
View File
@@ -91,6 +91,9 @@ server {
root $public;
add_header ETag "";
# auth_basic on;
# auth_basic_user_file /etc/nginx/htpasswd;
location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {
expires 1y;
add_header Cache-Control public;