moved force_ssl and self signed cert to tasks

This commit is contained in:
nd 2020-04-30 19:59:06 +02:00
parent b3aa2c6169
commit 6781423adf
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 19 additions and 22 deletions

View file

@ -12,3 +12,15 @@ nginx:
resolver:
- 8.8.8.8
- 8.8.4.4
nginx_forcessl_vhost:
"https-redirect":
listen:
nossl: True
ssl: False
locations:
- match: '/.well-known/acme-challenge/'
alias: '/var/www/letsencrypt/'
- match: '/'
custom:
- return 301 https://$host$request_uri