24 lines
659 B
Plaintext
24 lines
659 B
Plaintext
|
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;
|
||
|
}
|
||
|
}
|