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; + } +}