Migrate matrix to sops-nix
This commit is contained in:
parent
dc965c3329
commit
a01a891495
5 changed files with 85 additions and 70 deletions
|
|
@ -51,7 +51,7 @@
|
|||
notif_from = "Nekoverse Matrix Server <nyareply@nekover.se>";
|
||||
};
|
||||
max_upload_size = "500M";
|
||||
signing_key_path = "/secrets/matrix-homeserver-signing-key.secret";
|
||||
signing_key_path = "/run/secrets/matrix-homeserver-signing-key";
|
||||
admin_contact = "mailto:admin@nekover.se";
|
||||
web_client_location = "https://element.nekover.se";
|
||||
enable_metrics = true;
|
||||
|
|
@ -86,10 +86,41 @@
|
|||
};
|
||||
extras = [ "oidc" ];
|
||||
extraConfigFiles = [
|
||||
"/secrets/matrix-registration-shared-secret.secret"
|
||||
"/secrets/matrix-turn-shared-secret.secret"
|
||||
"/secrets/matrix-email-smtp-pass.secret"
|
||||
"/secrets/matrix-homeserver-mas-config.secret"
|
||||
"/run/secrets/matrix-registration-shared-secret"
|
||||
"/run/secrets/matrix-turn-shared-secret"
|
||||
"/run/secrets/matrix-email-smtp-pass"
|
||||
"/run/secrets/matrix-homeserver-mas-config"
|
||||
];
|
||||
};
|
||||
|
||||
sops.secrets."matrix-homeserver-signing-key" = {
|
||||
mode = "0440";
|
||||
owner = "matrix-synapse";
|
||||
group = "matrix-synapse";
|
||||
restartUnits = [ "matrix-synapse.service" ];
|
||||
};
|
||||
sops.secrets."matrix-registration-shared-secret" = {
|
||||
mode = "0440";
|
||||
owner = "matrix-synapse";
|
||||
group = "matrix-synapse";
|
||||
restartUnits = [ "matrix-synapse.service" ];
|
||||
};
|
||||
sops.secrets."matrix-turn-shared-secret" = {
|
||||
mode = "0440";
|
||||
owner = "matrix-synapse";
|
||||
group = "matrix-synapse";
|
||||
restartUnits = [ "matrix-synapse.service" ];
|
||||
};
|
||||
sops.secrets."matrix-email-smtp-pass" = {
|
||||
mode = "0440";
|
||||
owner = "matrix-synapse";
|
||||
group = "matrix-synapse";
|
||||
restartUnits = [ "matrix-synapse.service" ];
|
||||
};
|
||||
sops.secrets."matrix-homeserver-mas-config" = {
|
||||
mode = "0440";
|
||||
owner = "matrix-synapse";
|
||||
group = "matrix-synapse";
|
||||
restartUnits = [ "matrix-synapse.service" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue