Adding some includes
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
hosts: proxy-clean
|
hosts: proxy-clean
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
bool_create_vhost: false
|
bool_create_vhost: true
|
||||||
bool_cert_dry_run: false
|
bool_cert_dry_run: false
|
||||||
roles:
|
roles:
|
||||||
- nginx-proxy
|
- nginx-proxy
|
||||||
|
|||||||
10
roles/nginx-proxy/templates/force-ssl.conf
Normal file
10
roles/nginx-proxy/templates/force-ssl.conf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
set $test "";
|
||||||
|
if ($scheme = "http") {
|
||||||
|
set $test "H";
|
||||||
|
}
|
||||||
|
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
|
||||||
|
set $test "${test}T";
|
||||||
|
}
|
||||||
|
if ($test = H) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
2
roles/nginx-proxy/templates/ssl-cache.conf
Normal file
2
roles/nginx-proxy/templates/ssl-cache.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
ssl_session_timeout 5m;
|
||||||
|
ssl_session_cache shared:SSL:50m;
|
||||||
4
roles/nginx-proxy/templates/ssl-ciphers.conf
Normal file
4
roles/nginx-proxy/templates/ssl-ciphers.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# intermediate configuration. tweak to your needs.
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384';
|
||||||
|
ssl_prefer_server_ciphers off;
|
||||||
Reference in New Issue
Block a user