[WIP] Try adding site configuration in the folder commonly used
This commit is contained in:
parent
9073d70dab
commit
dc40c11fbe
@ -7,7 +7,7 @@
|
||||
- name: Create basic Nginx config for new container
|
||||
template:
|
||||
src: newsite.conf.j2
|
||||
dest: '/etc/nginx/conf.d/{{ container }}.{{ dominio }}.conf'
|
||||
dest: '/etc/nginx/sites-enabled/{{ container }}.{{ dominio }}'
|
||||
|
||||
- name: Create folder for Let's Encrypt files
|
||||
file:
|
||||
@ -31,13 +31,13 @@
|
||||
|
||||
- name: Use Proxy protocol in port 443
|
||||
lineinfile:
|
||||
path: '/etc/nginx/conf.d/{{ container }}.{{ dominio }}.conf'
|
||||
path: '/etc/nginx/sites-enabled/{{ container }}.{{ dominio }}'
|
||||
line: ' listen 443 ssl proxy_protocol;'
|
||||
regexp: '^ listen 443'
|
||||
|
||||
- name: Use Proxy protocol in port 443 IPv6
|
||||
lineinfile:
|
||||
path: '/etc/nginx/conf.d/{{ container }}.{{ dominio }}.conf'
|
||||
path: '/etc/nginx/sites-enabled/{{ container }}.{{ dominio }}'
|
||||
line: ' listen [::]:443 ssl proxy_protocol;'
|
||||
regexp: '^ listen .....443'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user