1
0
mirror of https://github.com/dev-sec/ansible-nginx-hardening.git synced 2024-11-26 07:03:49 +01:00
ansible-nginx-hardening/templates/hardening.conf.j2

17 lines
768 B
Plaintext
Raw Normal View History

2018-11-18 10:04:54 +01:00
# {{ ansible_managed|comment }}
2016-07-26 12:28:52 +02:00
# Additional configuration for Nginx.
2018-11-18 10:04:54 +01:00
client_header_buffer_size {{ nginx_client_header_buffer_size }};
large_client_header_buffers {{ nginx_large_client_header_buffers }};
client_body_timeout {{ nginx_client_body_timeout }};
client_header_timeout {{ nginx_client_header_timeout }};
send_timeout {{ nginx_send_timeout }};
limit_conn_zone {{ nginx_limit_conn_zone }};
limit_conn {{ nginx_limit_conn }};
ssl_ciphers '{{ nginx_ssl_ciphers }}';
ssl_session_tickets {{ nginx_ssl_session_tickets }};
ssl_dhparam /etc/nginx/dh{{ nginx_dh_size }}.pem;
2016-07-26 12:28:52 +02:00
{% for header in nginx_add_header %}
2018-11-18 10:04:54 +01:00
add_header {{ header }};
2016-07-26 12:28:52 +02:00
{% endfor %}