Commit 760f7179 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: nginx correctly redirect for shellinabox

parent faab3b37
......@@ -128,7 +128,7 @@ mode = 0644
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/nginx_conf.in
download-only = true
md5sum = df4cf59f160b429a1eee43eea9e6aff8
md5sum = 24c8f0568d8e4e251319326394e13612
filename = nginx_conf.in
mode = 0644
......
......@@ -77,7 +77,7 @@ http {
proxy_pass http://unix:{{ socket }};
}
location /shellinabox {
proxy_pass http://{{ param_nginx_frontend['global-ip'] }}:{{ shellinabox_port }}/;
proxy_pass http://[{{ param_nginx_frontend['global-ip'] }}]:{{ shellinabox_port }}/;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
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