Compare commits
No commits in common. "ad03e82feb612cdaaddbcda7e5b8cccf2259688d" and "fe3d97cd343dde6f3467e54420a806e9260df3d9" have entirely different histories.
ad03e82feb
...
fe3d97cd34
3 changed files with 7 additions and 8 deletions
|
@ -20,10 +20,12 @@
|
||||||
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.User = psqlUser;
|
serviceConfig = {
|
||||||
serviceConfig.RemainAfterExit = "yes";
|
User = psqlUser;
|
||||||
|
ExecStart = pkgs.writeScript "matrix-synapse-psql-vacuum.sh" ''
|
||||||
script = ''${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"'';
|
${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)
|
app.run(host="127.0.0.1", port=CONFIG_PORT, debug=True)
|
||||||
|
|
|
@ -30,9 +30,6 @@ 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