roles/nginx: Add HTTP headers for web application security
See: https://github.com/h5bp/server-configs-nginx/blob/master/h5bp/directive-only/extra-security.conf See: https://www.owasp.org/index.php/List_of_useful_HTTP_headers Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
@ -11,9 +11,10 @@
|
||||
apt: pkg=nginx update_cache=yes state=latest
|
||||
tags: nginx
|
||||
|
||||
- name: Copy nginx config
|
||||
- name: Copy nginx configs
|
||||
copy: src={{ item }} dest=/etc/nginx/{{ item }} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- extra-security.conf
|
||||
- nginx.conf
|
||||
notify:
|
||||
- reload nginx
|
||||
|
Reference in New Issue
Block a user