2021-05-04 07:30:08 +00:00
|
|
|
server {
|
2024-02-01 16:04:40 +00:00
|
|
|
listen 80;
|
|
|
|
listen 443 ssl;
|
2021-05-04 07:30:08 +00:00
|
|
|
root /usr/share/nginx/html;
|
|
|
|
server_tokens off;
|
|
|
|
access_log off;
|
|
|
|
|
2024-02-01 16:04:40 +00:00
|
|
|
# Configure SSL
|
|
|
|
if ($scheme = "http") {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
ssl_certificate /etc/ssl/certificate.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/certificate.key;
|
|
|
|
ssl_protocols TLSv1.3;
|
|
|
|
|
|
|
|
# Enable OPFS
|
|
|
|
add_header Cross-Origin-Opener-Policy "same-origin";
|
|
|
|
add_header Cross-Origin-Embedder-Policy "require-corp";
|
|
|
|
|
2021-05-04 07:30:08 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|