Skip to content
Snippets Groups Projects
Commit 2f75637a authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

test sans resolver

parent d0183762
No related branches found
No related tags found
Loading
......@@ -42,14 +42,12 @@ server {
# use regular expression for location to avoid nginx resolve error (https://stackoverflow.com/questions/57937222/502-bad-gateway-nginx-no-resolver-defined-to-resolve ) #
location ^~ /actualites/details/ {
resolver dns-default.openshift-dns.svc.cluster.local;
# proxy_set_header must be outside if clause (cf. https://stackoverflow.com/questions/16500594/why-i-cant-put-proxy-set-header-inside-an-if-clause )
proxy_set_header User-Agent "";
if ($prerender = 1) {
# For use of proxy_pass within a regular expression location, cf. https://stackoverflow.com/a/53354944
proxy_pass http://res-client-service:8080/api/render/$uri;
proxy_pass http://res-client-service.ns-res-d01-syn.svc.cluster.local:8080/api/render/$uri;
}
# if no prerender, apply default angular route
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment