♻️: refactor allowlist

This commit is contained in:
VC
2024-11-04 17:48:43 +01:00
parent 92cbac9568
commit 95f38ef6f7
19 changed files with 95 additions and 70 deletions

View File

@@ -2,13 +2,13 @@ server {
{% include './templates/header.conf.j2' %}
location / {
proxy_pass http://web_backend_{{ item.split('.')|join('_') }};
proxy_pass http://web_backend_{{ item.host.split('.')|join('_') }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
}
upstream web_backend_{{ item.split('.')|join('_') }} {
upstream web_backend_{{ item.host.split('.')|join('_') }} {
# If you have a garage instance locally.
server [::1]:3902;
}