mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Allow sites to set HTTP basic authentication through nginx.
This commit is contained in:
parent
3b45cd0fcb
commit
9f05361f14
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue