[nginx] Don't deploy SSL configuration if we don't need one
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
8d8c212f49
commit
3b79c0177c
|
@ -30,3 +30,23 @@ glob_roundcube:
|
||||||
larry: https://www.crans.org/images/crans_banner.png
|
larry: https://www.crans.org/images/crans_banner.png
|
||||||
classic: https://www.crans.org/images/crans_banner.png
|
classic: https://www.crans.org/images/crans_banner.png
|
||||||
|
|
||||||
|
loc_nginx:
|
||||||
|
service_name: "roundcube"
|
||||||
|
ssl: []
|
||||||
|
servers:
|
||||||
|
- server_name: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipwrap + [ansible_hostname, ansible_hostname + '.adm.crans.org'] }}"
|
||||||
|
default: true
|
||||||
|
root: "/var/lib/roundcube"
|
||||||
|
locations:
|
||||||
|
- filter: "~ \\.php$"
|
||||||
|
params:
|
||||||
|
- "include snippets/fastcgi-php.conf"
|
||||||
|
- "fastcgi_buffer_size 128k"
|
||||||
|
- "fastcgi_buffers 4 256k"
|
||||||
|
- "fastcgi_busy_buffers_size 256k"
|
||||||
|
- "fastcgi_pass unix:/var/run/php/php7.3-fpm.sock"
|
||||||
|
- "include fastcgi_params"
|
||||||
|
additional_params:
|
||||||
|
- "index index.php index.htm index.html"
|
||||||
|
- "try_files $uri $uri/ /index.php?q=$uri&$args"
|
||||||
|
- "client_max_body_size 10G"
|
||||||
|
|
|
@ -36,6 +36,7 @@ to_backup:
|
||||||
|
|
||||||
loc_nginx:
|
loc_nginx:
|
||||||
service_name: ftp
|
service_name: ftp
|
||||||
|
ssl: []
|
||||||
servers:
|
servers:
|
||||||
- server_name:
|
- server_name:
|
||||||
- "ftp"
|
- "ftp"
|
||||||
|
|
|
@ -2,25 +2,3 @@
|
||||||
interfaces:
|
interfaces:
|
||||||
adm: eth0
|
adm: eth0
|
||||||
srv_nat: eth1
|
srv_nat: eth1
|
||||||
|
|
||||||
loc_nginx:
|
|
||||||
service_name: "roundcube"
|
|
||||||
ssl: []
|
|
||||||
servers:
|
|
||||||
- server_name:
|
|
||||||
- "roundcube.adm.crans.org"
|
|
||||||
default: true
|
|
||||||
root: "/var/lib/roundcube"
|
|
||||||
locations:
|
|
||||||
- filter: "~ \\.php$"
|
|
||||||
params:
|
|
||||||
- "include snippets/fastcgi-php.conf"
|
|
||||||
- "fastcgi_buffer_size 128k"
|
|
||||||
- "fastcgi_buffers 4 256k"
|
|
||||||
- "fastcgi_busy_buffers_size 256k"
|
|
||||||
- "fastcgi_pass unix:/var/run/php/php7.3-fpm.sock"
|
|
||||||
- "include fastcgi_params"
|
|
||||||
additional_params:
|
|
||||||
- "index index.php index.htm index.html"
|
|
||||||
- "try_files $uri $uri/ /index.php?q=$uri&$args"
|
|
||||||
- "client_max_body_size 10G"
|
|
||||||
|
|
Loading…
Reference in New Issue