✨ upgrade terraform files to prevent giutlab webui issues
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user