use the signing key

This commit is contained in:
Motiejus Jakštys 2023-03-19 21:41:07 +02:00
parent 71e653c3a7
commit 3e5a703118
1 changed files with 10 additions and 1 deletions

View File

@ -377,7 +377,6 @@ in {
# - turn_shared_secret
# TODO:
# app_service_config_files
# signing_key_path
matrix-synapse = {
enable = true;
settings = {
@ -566,6 +565,16 @@ in {
];
};
matrix-synapse = {
preStart = ''
mkdir -p /run/matrix-synapse/
ln -sf ''${CREDENTIALS_DIRECTORY}/jakstys.lt.signing.key /run/matrix-synapse/jakstys.lt.signing.key
'';
serviceConfig.LoadCredential = [
"jakstys.lt.signing.key:/var/src/secrets/synapse/jakstys.lt.signing.key"
];
};
cert-watcher = {
description = "Restart coturn when tls key/cert changes";
wantedBy = ["multi-user.target"];