feat: rename cm synapse-config -> synapse

This commit is contained in:
ange 2024-05-15 23:43:25 +02:00
parent e440d92b2c
commit 8e94b3d942
6 changed files with 4 additions and 6 deletions

2
.env
View File

@ -1,6 +1,6 @@
PROD_URL=matrix.gmoker.com PROD_URL=matrix.gmoker.com
SERVER_NAME=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 TURN_URL=turn.test.gmoker.com
IMAGECOTURN=docker.io/coturn/coturn:4.6.2 IMAGECOTURN=docker.io/coturn/coturn:4.6.2

View File

@ -31,7 +31,7 @@ function kgcmkey() {
} }
function get_synapse_key() { 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 TURN_SHARED_SECRET; TURN_SHARED_SECRET="$(get_synapse_key turn_shared_secret)"
export REGISTRATION_SECRET; REGISTRATION_SECRET="$(get_synapse_key registration_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=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < homeserver.yaml) \
--from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < log.config) --from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < log.config)

View File

@ -69,7 +69,6 @@ spec:
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /config/ mountPath: /config/
readOnly: true
- name: data - name: data
mountPath: /data/ mountPath: /data/
- name: keys - name: keys
@ -79,7 +78,7 @@ spec:
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: synapse-config name: synapse
- name: keys - name: keys
persistentVolumeClaim: persistentVolumeClaim:
claimName: keys claimName: keys

View File

@ -85,7 +85,6 @@ spec:
volumeMounts: volumeMounts:
- name: delegation - name: delegation
mountPath: /etc/nginx/conf.d/ mountPath: /etc/nginx/conf.d/
readOnly: true
volumes: volumes:
- name: delegation - name: delegation
configMap: configMap: