mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 16:04:22 -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;
|
root $public;
|
||||||
add_header ETag "";
|
add_header ETag "";
|
||||||
|
|
||||||
|
# auth_basic on;
|
||||||
|
# auth_basic_user_file /etc/nginx/htpasswd;
|
||||||
|
|
||||||
location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {
|
location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control public;
|
add_header Cache-Control public;
|
||||||
|
|
Loading…
Reference in a new issue