2021-08-04 02:04:45 +09:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name cinny.domain.tld;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
alias /var/lib/letsencrypt/.well-known/acme-challenge/;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
server_name cinny.domain.tld;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
root /opt/cinny/dist/;
|
2024-07-24 21:51:03 +09:00
|
|
|
|
|
|
|
rewrite ^/config.json$ /config.json break;
|
|
|
|
rewrite ^/manifest.json$ /manifest.json break;
|
|
|
|
|
|
|
|
rewrite ^.*/olm.wasm$ /olm.wasm break;
|
2024-09-07 22:45:55 +09:00
|
|
|
rewrite ^/sw.js$ /sw.js break;
|
2024-07-24 21:51:03 +09:00
|
|
|
rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break;
|
|
|
|
|
|
|
|
rewrite ^/public/(.*)$ /public/$1 break;
|
|
|
|
rewrite ^/assets/(.*)$ /assets/$1 break;
|
|
|
|
|
|
|
|
rewrite ^(.+)$ /index.html break;
|
2021-08-04 02:04:45 +09:00
|
|
|
}
|
|
|
|
}
|