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