Serves the same fields and formats as the old PHP scripts, with HTML/XML/CSV output escaped, X-Real-IP trusted only from loopback, and a 2s reverse-DNS timeout. m.z.gd becomes an nginx return. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
671 B
Plaintext
23 lines
671 B
Plaintext
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
http2 on;
|
|
server_name m.z.gd;
|
|
server_tokens off;
|
|
|
|
charset utf-8;
|
|
|
|
ssl_certificate /usr/local/etc/letsencrypt/live/m.z.gd/fullchain.pem;
|
|
ssl_certificate_key /usr/local/etc/letsencrypt/live/m.z.gd/privkey.pem;
|
|
|
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
|
add_header X-Frame-Options DENY;
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
add_header Content-Security-Policy "default-src 'self'; style-src * 'unsafe-inline'";
|
|
|
|
location / {
|
|
return 302 https://app.fastmail.com;
|
|
}
|
|
}
|