🚑️: reintroduce base web garage template
This commit is contained in:
14
roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2
Normal file
14
roles/nginx/templates/vhosts/web.garage.mateu.be.conf.j2
Normal file
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user