## #
#
#
#
#
##
server {
#
#
#
listen [::]:443 ssl; listen 443 ssl;
server_name us.metamath.org;
root /var/www/us.metamath.org/html;
index index.html index.htm index.nginx-debian.html;
server_tokens off;
location / {
limit_except GET HEAD OPTIONS { deny all; }
try_files $uri $uri/ =404;
add_header ‘Access-Control-Allow-Origin’ ‘*’; add_header ‘Access-Control-Allow-Methods’ ‘GET, HEAD, OPTIONS’; add_header ‘Access-Control-Allow-Headers’ ‘DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range’;
add_header Strict-Transport-Security “max-age=31536000; includeSubDomains” always; add_header Content-Security-Policy “default-src ‘self’; script-src ‘self’ ‘unsafe-inline’; style-src ‘self’ ‘unsafe-inline’;” always;
add_header X-Frame-Options “SAMEORIGIN” always;
add_header Referrer-Policy “strict-origin-when-cross-origin” always;
add_header Permissions-Policy “fullscreen=(), geolocation=(), camera=(), microphone=(), bluetooth=(), usb=()” always;
add_header X-Content-Type-Options “nosniff” always; add_header X-XSS-Protection “1; mode=block” always; }
# #location ~ .php$ {
#
#}
# #location ~ /.ht {
#}
ssl_certificate /etc/letsencrypt/live/us.metamath.org/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/us.metamath.org/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; }
server { listen 80 ; listen [::]:80 ; server_name us.metamath.org;
server_tokens off;
location / {
limit_except GET HEAD OPTIONS { deny all; }
add_header X-Content-Type-Options “nosniff” always; add_header X-XSS-Protection “1; mode=block” always;
}
return 301 https://$host$request_uri; }