Skip to content
Snippets Groups Projects

Develop

Files

+ 18
0
server {
add_header Allow "GET, HEAD" always;
if ($request_method !~ ^(GET|HEAD)$ )
{
return 405;
}
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
add_header Feature-Policy "geolocation none;midi none;notifications none;push none;sync-xhr none;magnetometer none;gyroscope none;speaker self;vibrate self;payment none;";
location / {
root /var/www/html;
try_files $uri $uri/ /index.html;
}
}
Loading