server { listen 80; listen 443 ssl; root /usr/share/nginx/html; server_tokens off; access_log off; # 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"; location / { try_files $uri $uri/ /index.html; } }