diff --git a/nginx/default.conf b/nginx/default.conf index cc212a0ad394ac2f4ade5208b5a11fe2edf1ab65..b0b8812e4ef489192f14ddbc988f321f90c576bf 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -46,14 +46,14 @@ server { # 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 ""; + proxy_ssl_verify off; + proxy_ssl_server_name on; + proxy_ssl_session_reuse off; + proxy_ssl_protocols TLSv1.2 TLSv1.3; if ($prerender = 1) { # For use of proxy_pass within a regular expression location, cf. https://stackoverflow.com/a/53354944 proxy_pass https://$host/api/render/$uri; - proxy_ssl_verify off; - proxy_ssl_server_name on; - proxy_ssl_session_reuse off; - proxy_ssl_protocols TLSv1.2 TLSv1.3; } # if no prerender, apply default angular route