summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j2')
-rw-r--r--roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j211
1 files changed, 8 insertions, 3 deletions
diff --git a/roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j2 b/roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j2
index 42d76757..c1a4f2ea 100644
--- a/roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j2
+++ b/roles/apps/nextcloud/instance/templates/pod-spec-with-mariadb.yml.j2
@@ -13,9 +13,7 @@ containers:
{% if 'new' in nextcloud_instances[nextcloud_instance] and nextcloud_instances[nextcloud_instance].new %}
env:
- name: NEXTCLOUD_TRUSTED_DOMAINS
- value: "{{ nextcloud_instances[nextcloud_instance].hostnames | join(' ') }}"
- - name: OVERWRITEPROTOCOL
- value: "https"
+ value: "{{ nextcloud_instances[nextcloud_instance].publish.hostnames | join(' ') }}"
- name: MYSQL_HOST
value: 127.0.0.1
- name: MYSQL_DATABASE
@@ -36,6 +34,9 @@ containers:
mountPath: /etc/apache2/ports.conf
subPath: ports.conf
readOnly: true
+ - name: tls
+ mountPath: /etc/ssl/publish
+ readOnly: true
ports:
- containerPort: 8080
hostPort: {{ nextcloud_instances[nextcloud_instance].port }}
@@ -91,6 +92,10 @@ volumes:
hostPath:
path: "{{ nextcloud_instance_basepath }}/config/"
type: Directory
+- name: tls
+ hostPath:
+ path: "{{ nextcloud_instance_basepath }}/tls/"
+ type: Directory
- name: nextcloud
hostPath:
path: "{{ nextcloud_instance_basepath }}/nextcloud"