feat: rename cm synapse-config -> synapse
This commit is contained in:
parent
e440d92b2c
commit
8e94b3d942
2
.env
2
.env
@ -1,6 +1,6 @@
|
||||
PROD_URL=matrix.gmoker.com
|
||||
SERVER_NAME=gmoker.com
|
||||
IMAGEAPP=ghcr.io/element-hq/synapse:v1.106.0
|
||||
IMAGEAPP=ghcr.io/element-hq/synapse:v1.107.0
|
||||
|
||||
TURN_URL=turn.test.gmoker.com
|
||||
IMAGECOTURN=docker.io/coturn/coturn:4.6.2
|
||||
|
@ -31,7 +31,7 @@ function kgcmkey() {
|
||||
}
|
||||
|
||||
function get_synapse_key() {
|
||||
kgcmkey synapse-config 'homeserver\.yaml' | awk -F\" "/^\s*$1/{print \$2}" || openssl rand -hex 32
|
||||
kgcmkey synapse 'homeserver\.yaml' | awk -F\" "/^\s*$1/{print \$2}" || openssl rand -hex 32
|
||||
}
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ export API_SECRET; API_SECRET="$(get_synapse_key macaroon_secr
|
||||
export TURN_SHARED_SECRET; TURN_SHARED_SECRET="$(get_synapse_key turn_shared_secret)"
|
||||
export REGISTRATION_SECRET; REGISTRATION_SECRET="$(get_synapse_key registration_shared_secret)"
|
||||
|
||||
kcreatecm synapse-config \
|
||||
kcreatecm synapse \
|
||||
--from-file=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < homeserver.yaml) \
|
||||
--from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < log.config)
|
||||
|
||||
|
@ -69,7 +69,6 @@ spec:
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config/
|
||||
readOnly: true
|
||||
- name: data
|
||||
mountPath: /data/
|
||||
- name: keys
|
||||
@ -79,7 +78,7 @@ spec:
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: synapse-config
|
||||
name: synapse
|
||||
- name: keys
|
||||
persistentVolumeClaim:
|
||||
claimName: keys
|
||||
|
@ -85,7 +85,6 @@ spec:
|
||||
volumeMounts:
|
||||
- name: delegation
|
||||
mountPath: /etc/nginx/conf.d/
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: delegation
|
||||
configMap:
|
||||
|
Loading…
Reference in New Issue
Block a user