Compare commits
2 commits
fe3d97cd34
...
ad03e82feb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ad03e82feb | ||
![]() |
da7757fffb |
3 changed files with 8 additions and 7 deletions
|
@ -20,12 +20,10 @@
|
||||||
psqlUser = config.systemd.services.postgresql.serviceConfig.User;
|
psqlUser = config.systemd.services.postgresql.serviceConfig.User;
|
||||||
dbName = config.services.matrix-synapse.settings.database.args.database;
|
dbName = config.services.matrix-synapse.settings.database.args.database;
|
||||||
in {
|
in {
|
||||||
serviceConfig = {
|
serviceConfig.User = psqlUser;
|
||||||
User = psqlUser;
|
serviceConfig.RemainAfterExit = "yes";
|
||||||
ExecStart = pkgs.writeScript "matrix-synapse-psql-vacuum.sh" ''
|
|
||||||
${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"
|
script = ''${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"'';
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers."matrix-synapse-housecleaning-vacuum-db" = {
|
systemd.timers."matrix-synapse-housecleaning-vacuum-db" = {
|
||||||
|
|
|
@ -411,4 +411,4 @@ def is_json(potential_json: str) -> bool:
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(host="127.0.0.1", port=CONFIG_PORT, debug=True)
|
app.run(host="127.0.0.1", port=CONFIG_PORT)
|
||||||
|
|
|
@ -30,6 +30,9 @@ in {
|
||||||
NOTIFIER_MAIL_DOMAIN = config.mine.shared.settings.domain;
|
NOTIFIER_MAIL_DOMAIN = config.mine.shared.settings.domain;
|
||||||
NOTIFIER_MAIL_HOST = config.mine.shared.settings.mail.domain;
|
NOTIFIER_MAIL_HOST = config.mine.shared.settings.mail.domain;
|
||||||
NOTIFIER_MAIL_PORT = builtins.toString config.mine.shared.settings.mail.ports.submissions;
|
NOTIFIER_MAIL_PORT = builtins.toString config.mine.shared.settings.mail.ports.submissions;
|
||||||
|
|
||||||
|
# production
|
||||||
|
FLASK_ENV = "production";
|
||||||
};
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue