add short names

add publish conditions for services

use official gitea helm chart
This commit is contained in:
ace
2021-01-25 21:04:57 +03:00
parent f1694a4e81
commit 82c5f35eda
26 changed files with 182 additions and 156 deletions

View File

@ -1,6 +1,7 @@
roundcube_enabled: true
roundcube_publish: false
roundcube_use_external_db: true
roundcube_short_name: "webmail"
roundcube_default_values:
env:
- name: ROUNDCUBEMAIL_DB_TYPE
@ -14,11 +15,11 @@ roundcube_default_values:
- name: ROUNDCUBEMAIL_DB_NAME
value: roundcube
- name: ROUNDCUBEMAIL_DEFAULT_HOST
value: "ssl://mail.{{ domain }}"
value: "ssl://{{ mail_short_name | default('mail') }}.{{ domain }}"
- name: ROUNDCUBEMAIL_DEFAULT_PORT
value: "993"
- name: ROUNDCUBEMAIL_SMTP_SERVER
value: "ssl://mail.{{ domain }}"
value: "ssl://{{ mail_short_name | default('mail') }}.{{ domain }}"
- name: ROUNDCUBEMAIL_SMTP_PORT
value: "465"
- name: ROUNDCUBEMAIL_SKIN
@ -40,11 +41,11 @@ roundcube_default_values:
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
path: /
hosts:
- webmail.{{ domain }}
- "{{ roundcube_short_name }}.{{ domain }}"
tls:
- secretName: webmail.{{ domain }}-tls
- secretName: "{{ roundcube_short_name }}.{{ domain }}-tls"
hosts:
- webmail.{{ domain }}
- "{{ roundcube_short_name }}.{{ domain }}"
persistence:
enabled: true
storageClass: "{{ roundcube_storage | default('nfs-hdd') }}"
@ -56,7 +57,7 @@ roundcube_default_values:
$config['mail_domain'] = '%d';
$config['username_domain'] = '%d';
$config['managesieve_port'] = '4190';
$config['managesieve_host'] = 'ssl://dovecot.{{ namespace }}.svc.cluster.local';
$config['managesieve_host'] = 'ssl://{{ dovecot_short_name | default("dovecot") }}.{{ namespace }}.svc.cluster.local';
$config['managesieve_usetls'] = false;
$config['managesieve_debug'] = true;
$config['managesieve_conn_options'] = array(