mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:42:16 +08:00
Allow sites to set HTTP basic authentication through nginx.
This commit is contained in:
parent
3b45cd0fcb
commit
9f05361f14
|
@ -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 New Issue
Block a user