17 lines
422 B
Django/Jinja
17 lines
422 B
Django/Jinja
server {
|
|
{% include './templates/header.conf.j2' %}
|
|
|
|
location / {
|
|
proxy_pass http://s3_backend_{{ item.split('.')|join('_') }};
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
# Disable buffering to a temporary file.
|
|
proxy_max_temp_file_size 0;
|
|
}
|
|
}
|
|
|
|
upstream s3_backend_{{ item.split('.')|join('_') }} {
|
|
# If you have a garage instance locally.
|
|
server [::1]:3900;
|
|
}
|