config: Allow unconditional access to admin interface with compose

This commit is contained in:
nemunaire 2019-09-05 10:50:00 +02:00
parent 846f2ce8a4
commit 168be0f7cc

View file

@ -121,9 +121,9 @@ server {
#auth_basic "Secure Zone"; #auth_basic "Secure Zone";
#auth_basic_user_file ficpasswd; #auth_basic_user_file ficpasswd;
if ($remote_user !~ "^nemunaire|bombal_s$") { #if ($remote_user !~ "^nemunaire|bombal_s$") {
return 403; # return 403;
} #}
proxy_pass http://fic-admin:8081/admin/api/; proxy_pass http://fic-admin:8081/admin/api/;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
@ -134,9 +134,9 @@ server {
#auth_basic "Secure Zone"; #auth_basic "Secure Zone";
#auth_basic_user_file ficpasswd; #auth_basic_user_file ficpasswd;
if ($remote_user !~ "^nemunaire|bombal_s$") { #if ($remote_user !~ "^nemunaire|bombal_s$") {
return 403; # return 403;
} #}
proxy_pass http://fic-admin:8081; proxy_pass http://fic-admin:8081;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;