Merge pull request '[ADD] Uses a more standard Nginx site config file' (#1) from move-nginx-site-conf into main
Reviewed-on: #1
This commit is contained in:
commit
53ea4b7327
@ -7,7 +7,13 @@
|
||||
- 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-available/{{ container }}.{{ dominio }}'
|
||||
|
||||
- name: Enable Nginx config
|
||||
file:
|
||||
state: link
|
||||
src: '/etc/nginx/sites-available/{{ container }}.{{ dominio }}'
|
||||
dest: '/etc/nginx/sites-enabled/{{ container }}.{{ dominio }}'
|
||||
|
||||
- name: Create folder for Let's Encrypt files
|
||||
file:
|
||||
@ -31,13 +37,13 @@
|
||||
|
||||
- name: Use Proxy protocol in port 443
|
||||
lineinfile:
|
||||
path: '/etc/nginx/conf.d/{{ container }}.{{ dominio }}.conf'
|
||||
path: '/etc/nginx/sites-available/{{ 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-available/{{ container }}.{{ dominio }}'
|
||||
line: ' listen [::]:443 ssl proxy_protocol;'
|
||||
regexp: '^ listen .....443'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user