From af6bdd7d1ff90d84c6d9beb30c541572db08a964 Mon Sep 17 00:00:00 2001 From: VC Date: Thu, 23 Oct 2025 08:59:52 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8:=20export=20garage=E2=80=99s=20admin?= =?UTF-8?q?=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory/host_vars/garage1.yml | 1 + .../nginx/templates/vhosts/admin.garage.mateu.be.conf.j2 | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 roles/nginx/templates/vhosts/admin.garage.mateu.be.conf.j2 diff --git a/inventory/host_vars/garage1.yml b/inventory/host_vars/garage1.yml index 4d1cf08..8a9a484 100644 --- a/inventory/host_vars/garage1.yml +++ b/inventory/host_vars/garage1.yml @@ -1,6 +1,7 @@ --- web_hostname: - host: garage.mateu.be + - host: admin.garage.mateu.be - host: mastodon-ndfr.garage.mateu.be - host: medias.m.nintendojo.fr - host: nextcloud-libertus.garage.mateu.be diff --git a/roles/nginx/templates/vhosts/admin.garage.mateu.be.conf.j2 b/roles/nginx/templates/vhosts/admin.garage.mateu.be.conf.j2 new file mode 100644 index 0000000..fb3af44 --- /dev/null +++ b/roles/nginx/templates/vhosts/admin.garage.mateu.be.conf.j2 @@ -0,0 +1,9 @@ +server { +{% include './templates/header.conf.j2' %} + + location / { + proxy_pass http://[::1]:3903; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + } +}