ho-ansible / ansible

Playbooks and config for remote administration
1 stars 0 forks source link

nginx: security headers #69

Closed seanho00 closed 7 years ago

seanho00 commented 7 years ago
seanho00 commented 7 years ago

OK to enable HSTS, but don't preload: that requires includeSubDomains, so HSTS on all subdomains.

seanho00 commented 7 years ago

I currently include security headers at top level (http). As long as I don't set any headers in a subsequent level (server or location), the top-level security headers will be inherited:

http://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header