Files
server-infra/roles/web-static/templates/nginx.conf.j2
T
2026-07-08 05:59:11 -05:00

20 lines
509 B
Django/Jinja

# Managed by Ansible (roles/web-static). Do not edit by hand.
{% for a in _static_apps %}
server {
listen {{ a.port }};
server_name _;
root {{ (app_catalog[a.name].webroot_pattern | default(web_static_root ~ '/{env}_' ~ a.name)) | replace('{env}', a.env) }};
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(?:js|css|woff2?|png|jpg|jpeg|gif|svg|ico)$ {
expires 7d;
add_header Cache-Control "public";
}
}
{% endfor %}