Commit a9aa835c authored by Jérome Perrin's avatar Jérome Perrin

slaprunner: Make a temporary redirect when redirecting to /setAccount

Otherwise browser cache it and we cannot login
parent 05330266
......@@ -110,7 +110,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/nginx_conf.in
download-only = true
md5sum = 94d83ef3eb89c2d75c8c079ab12b4518
md5sum = ce02e86bfb7e411394d058b82dae0b12
filename = nginx_conf.in
mode = 0644
......
......@@ -45,10 +45,10 @@ http {
set $test "${test}_backend_access";
}
if ( $test = no_htpasswd) {
return 301 $scheme://$host/setAccount ;
return 307 $scheme://$host/setAccount ;
}
if ( $test = no_htpasswd_backend_access) {
return 301 /setAccount ;
return 307 /setAccount ;
}
auth_basic "Restricted";
auth_basic_user_file {{ param_nginx_frontend['etc_dir'] }}/.htpasswd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment