ingress #1
|
|
@ -35,19 +35,15 @@ http {
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
||||||
|
|
||||||
set_by_lua_block $ingress_path {
|
|
||||||
return "/app/19e08496_cookcli"
|
|
||||||
}
|
|
||||||
|
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter_types text/html text/css application/javascript;
|
sub_filter_types text/html text/css application/javascript;
|
||||||
sub_filter 'href="/' 'href="$ingress_path/';
|
sub_filter 'href="/' 'href="/app/19e08496_cookcli/';
|
||||||
sub_filter 'src="/' 'src="$ingress_path/';
|
sub_filter 'src="/' 'src="/app/19e08496_cookcli/';
|
||||||
sub_filter 'action="/' 'action="$ingress_path/';
|
sub_filter 'action="/' 'action="/app/19e08496_cookcli/';
|
||||||
|
|
||||||
# Gérer les redirections
|
# 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/app/19e08496_cookcli/;
|
||||||
proxy_redirect http://127.0.0.1:9081 $scheme://$host$ingress_path;
|
proxy_redirect http://127.0.0.1:9081 $scheme://$host/app/19e08496_cookcli;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue