diff --git a/nginx/default.conf b/nginx/default.conf index 2f72430a7ad51962be1cab5e6ad87c6dfc875d43..8127bc6a8b9cf16c70f81b5d160bddfc4788cd37 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -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