From e5a62190a197d469638d8d915af073810a201fb9 Mon Sep 17 00:00:00 2001 From: VC Date: Sun, 18 Aug 2024 20:55:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F:=20reintroduce=20base=20w?= =?UTF-8?q?eb=20garage=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/vhosts/web.garage.mateu.be.conf.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 diff --git a/roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 b/roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 new file mode 100644 index 0000000..2be9be1 --- /dev/null +++ b/roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2 @@ -0,0 +1,14 @@ +server { +{% include './templates/header.conf.j2' %} + + location / { + proxy_pass http://web_backend_{{ item.split('.')|join('_') }}; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + } +} + +upstream web_backend_{{ item.split('.')|join('_') }} { + # If you have a garage instance locally. + server [::1]:3902; +}