Compare commits
3 Commits
7ab3cb6c59
...
98ea861c13
Author | SHA1 | Date | |
---|---|---|---|
98ea861c13 | |||
4581bd4a6a | |||
3f2b8d2ee7 |
2
pillar/cluster/README.md
Normal file
2
pillar/cluster/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
This directory is intended to contain pillar data shared between cluster hosts.
|
||||
Create a subdirectory for the site the respective cluster is in, if one doesn't yet exist.
|
@ -24,3 +24,9 @@
|
||||
interfaces: {{ interfaces }}
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro nginx_crtkeypair(name, ssldir) -%}
|
||||
tls_{{ name }}:
|
||||
- ssl_certificate: {{ sslbase }}/{{ ssldir }}/crt
|
||||
- ssl_certificate_key: {{ sslbase }}/{{ ssldir }}/key
|
||||
{%- endmacro -%}
|
||||
|
@ -1,6 +1,9 @@
|
||||
{%- set sslbase = '/etc/ssl' -%}
|
||||
{%- from 'macros.jinja' import nginx_crtkeypair with context -%}
|
||||
{%- from 'macros.jinja' import firewall_interfaces, listeners -%}
|
||||
{%- set firewall_interfaces = firewall_interfaces -%}
|
||||
{%- set listeners = listeners -%}
|
||||
{%- set nginx_crtkeypair = nginx_crtkeypair -%}
|
||||
{%- set minion = grains['id'] -%}
|
||||
|
||||
{#- START Listener detection logic -#}
|
||||
|
@ -5,6 +5,16 @@ nginx:
|
||||
robots:
|
||||
- location /robots.txt:
|
||||
- root: /srv/www/htdocs
|
||||
tls:
|
||||
- ssl_session_timeout: 1d
|
||||
- ssl_session_cache: shared:Lysergic:10m
|
||||
- ssl_session_tickets: 'off'
|
||||
- ssl_protocols: TLSv1.3
|
||||
- ssl_prefer_server_ciphers: 'off'
|
||||
- add_header: Strict-Transport-Security "max-age=63072000" always
|
||||
- ssl_stapling: 'on'
|
||||
- ssl_stapling_verify: 'on'
|
||||
- ssl_trusted_certificate: /etc/ssl/ca-bundle.pem
|
||||
php-fastcgi:
|
||||
- 'location ~* \.php$':
|
||||
- fastcgi_index: index.php
|
||||
|
Loading…
x
Reference in New Issue
Block a user