Actualiser cookcli/rootfs/etc/nginx/nginx.conf
This commit is contained in:
parent
7524c3d6eb
commit
395c5930b4
|
|
@ -33,6 +33,21 @@ http {
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_buffering off;
|
||||
|
||||
|
||||
set_by_lua_block $ingress_path {
|
||||
return "/app/19e08496_cookcli"
|
||||
}
|
||||
|
||||
sub_filter_once off;
|
||||
sub_filter_types text/html text/css application/javascript;
|
||||
sub_filter 'href="/' 'href="$ingress_path/';
|
||||
sub_filter 'src="/' 'src="$ingress_path/';
|
||||
sub_filter 'action="/' 'action="$ingress_path/';
|
||||
|
||||
# Gérer les redirections
|
||||
proxy_redirect http://127.0.0.1:9081/ $scheme://$host$ingress_path/;
|
||||
proxy_redirect http://127.0.0.1:9081 $scheme://$host$ingress_path;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue