matrix/roles/cinny/templates/nginx.conf.j2

24 lines
659 B
Plaintext
Raw Normal View History

2024-09-19 16:04:30 +00:00
server {
listen {{ cinny_nginx_listen_port }};
listen [::]:{{ cinny_nginx_listen_port }};
{%- if cinny_nginx_server_name | default(false, true) %}
server_name {{ cinny_nginx_server_name }};
{%- endif %}
location {{ cinny_nginx_location }} {
root {{ cinny_dist_path }};
rewrite ^/config.json$ /config.json break;
rewrite ^/manifest.json$ /manifest.json break;
rewrite ^.*/olm.wasm$ /olm.wasm break;
rewrite ^/sw.js$ /sw.js break;
rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break;
rewrite ^/public/(.*)$ /public/$1 break;
rewrite ^/assets/(.*)$ /assets/$1 break;
rewrite ^(.+)$ /index.html break;
}
}