Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
- add_header X-Frame-Options "SAMEORIGIN" always;
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
- add_header X-XSS-Protection "1; mode=block" always;
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
- add_header X-Content-Type-Options "nosniff" always;
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
- add_header Referrer-Policy "no-referrer" always;
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
- add_header X-Download-Options "noopen" always;
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
- add_header X-Permitted-Cross-Domain-Policies "none" always;
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
- add_header X-Robots-Tag "noindex, nofollow" always;
- # https://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens
- server_tokens off;
- # https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip
- gzip on;
- # https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_vary
- gzip_vary on;
- # https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_comp_level
- gzip_comp_level 4;
- # https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_min_length
- gzip_min_length 256;
- # https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_proxied
- gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
- # https://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types
- gzip_types application/atom+xml text/javascript application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
- # https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
- client_max_body_size 512M;
- # https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_buffers
- fastcgi_buffers 64 4K;
- # https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_hide_header
- fastcgi_hide_header X-Powered-By;
- # https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size
- client_body_buffer_size 512k;
- # https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout
- client_body_timeout 300s;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement