feat: add web garage

This commit is contained in:
VC
2024-07-05 11:53:29 +02:00
parent 8e45df8e80
commit a8868f7f07
2 changed files with 20 additions and 2 deletions

View File

@@ -12,4 +12,9 @@ rpc_secret = "{{ garage_rpc_secret }}"
[s3_api]
s3_region = "garage"
api_bind_addr = "[::1]:3900"
api_bind_addr = "[::]:3900"
root_domain = ".garage.mateu.be"
[s3_web]
bind_addr = "[::1]:3902"
root_domain = ".garage.mateu.be"

View File

@@ -1 +0,0 @@
garage.mateu.be.conf.j2

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