Cleanup web-gw and nginx

This commit is contained in:
Markus 2017-11-16 19:02:26 +01:00
parent 6770035a61
commit 40bd3cf30e
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ server {
location / {
return 301 https://$host$request_uri;
}
}
}
server {

View File

@ -4,6 +4,9 @@
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ ansible_fqdn }}.key -out /etc/nginx/ssl/{{ ansible_fqdn }}.crt -days 730 -subj "/CN={{ ansible_fqdn }}" creates=/etc/nginx/ssl/{{ ansible_fqdn }}.crt
notify: Restart nginx
- name: Create web content directory
file: path=/var/www/html state=directory mode=0750
- name: Configure certificate manager
template: src=certs.j2 dest=/etc/acme/domains.d/{{ ansible_fqdn }}.conf
notify: Run certmgr