Enable basic auth for /login-dev
This commit is contained in:
parent
2822ff16c5
commit
ae2c6b01ff
@ -15,9 +15,9 @@ data:
|
|||||||
#if ($http_x_forwarded_proto != 'https') {
|
#if ($http_x_forwarded_proto != 'https') {
|
||||||
# return 301 https://$host$request_uri;
|
# return 301 https://$host$request_uri;
|
||||||
#}
|
#}
|
||||||
#location /login-dev {
|
location /login-dev {
|
||||||
# try_files $uri @appbasicauth;
|
try_files $uri @appbasicauth;
|
||||||
#}
|
}
|
||||||
location / {
|
location / {
|
||||||
try_files $uri @app;
|
try_files $uri @app;
|
||||||
}
|
}
|
||||||
@ -28,8 +28,8 @@ data:
|
|||||||
location @appbasicauth {
|
location @appbasicauth {
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_pass unix:///var/run/uwsgi/uwsgi.socket;
|
uwsgi_pass unix:///var/run/uwsgi/uwsgi.socket;
|
||||||
#auth_basic "Developer Access";
|
auth_basic "Developer Access";
|
||||||
#auth_basic_user_file /etc/nginx/.htpasswd;
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user