[nginx] Don't deploy SSL configuration if we don't need one

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-22 18:28:55 +01:00 committed by ynerant
parent 8d8c212f49
commit 3b79c0177c
3 changed files with 21 additions and 22 deletions

View File

@ -30,3 +30,23 @@ glob_roundcube:
larry: 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"

View File

@ -36,6 +36,7 @@ to_backup:
loc_nginx:
service_name: ftp
ssl: []
servers:
- server_name:
- "ftp"

View File

@ -2,25 +2,3 @@
interfaces:
adm: eth0
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"