This commit is contained in:
Micke Nordin 2023-03-29 10:56:03 +02:00
parent d7bf55f990
commit 497a0497fb
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 24 additions and 0 deletions

View file

@ -179,5 +179,20 @@ data:
), ),
); );
envars: |
unset HOME
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
SUFFIX=
fi
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
export APACHE_LOG_DIR=/tmp$SUFFIX
export LANG=C
export LANG
ports.conf: | ports.conf: |
Listen 8080 Listen 8080

View file

@ -47,6 +47,9 @@ spec:
- name: apache2-config - name: apache2-config
mountPath: /etc/apache2/apache2.conf mountPath: /etc/apache2/apache2.conf
subPath: apache2.conf subPath: apache2.conf
- name: envars
mountPath: /etc/apache2/envars
subPath: envars
- name: ports-config - name: ports-config
mountPath: /etc/apache2/ports.conf mountPath: /etc/apache2/ports.conf
subPath: ports.conf subPath: ports.conf
@ -195,6 +198,12 @@ spec:
items: items:
- key: "000-default.conf" - key: "000-default.conf"
path: "000-default.conf" path: "000-default.conf"
- name: envars
configMap:
name: nextcloud-configmap
items:
- key: "envars"
path: "envars"
- name: ports-config - name: ports-config
configMap: configMap:
name: nextcloud-configmap name: nextcloud-configmap