2024-07-24 12:51:03 +00:00
|
|
|
server {
|
2024-08-23 10:56:03 +00:00
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2024-07-24 12:51:03 +00:00
|
|
|
location / {
|
2024-08-23 10:56:03 +00:00
|
|
|
root /usr/share/nginx/html;
|
2024-07-24 12:51:03 +00:00
|
|
|
|
2024-08-23 10:56:03 +00:00
|
|
|
rewrite ^/config.json$ /config.json break;
|
2024-07-24 12:51:03 +00:00
|
|
|
rewrite ^/manifest.json$ /manifest.json break;
|
|
|
|
|
|
|
|
rewrite ^.*/olm.wasm$ /olm.wasm 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;
|
2024-08-23 10:56:03 +00:00
|
|
|
}
|
|
|
|
}
|