✨ upgrade terraform files to prevent giutlab webui issues

This commit is contained in:
2024-07-29 08:52:22 +01:00
parent 09c4d35c29
commit 0f6eb95f20
13 changed files with 166 additions and 194 deletions
+7 -8
View File
@@ -10,7 +10,8 @@ upstream ${name_site}_backend {
server {
server_name ${name_site}.tryton.geeraert.eu www.${name_site}.tryton.geeraert.eu;
location / {
proxy_pass http://${name_site}_backend;
proxy_pass %{ if proxy_pass_https}https%{else}http%{ endif }://${name_site}_backend;
proxy_set_header Upgrade $http_upgrade;
%{ if proxy_cache}
location ~* \.(html|css|jpg|gif|ico|js)$ {
proxy_cache cache;
@@ -25,15 +26,13 @@ server {
root /var/www/certbot;
}
%{ if extra_value_bool}
${extra-value}
%{ endif }
%{ if http2_bool}
%{~ if extra_value_bool ~}
${extra-value}
%{~ endif ~}
%{~ if http2_bool~}
http2 on;
ssl_protocols TLSv1.2;
%{ endif }
%{~ endif ~}
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;