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;
|
||||
dbName = config.services.matrix-synapse.settings.database.args.database;
|
||||
in {
|
||||
serviceConfig.User = psqlUser;
|
||||
serviceConfig.RemainAfterExit = "yes";
|
||||
|
||||
script = ''${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"'';
|
||||
serviceConfig = {
|
||||
User = psqlUser;
|
||||
ExecStart = pkgs.writeScript "matrix-synapse-psql-vacuum.sh" ''
|
||||
${config.services.postgresql.package}/bin/psql -d ${dbName} -c "vacuum full"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers."matrix-synapse-housecleaning-vacuum-db" = {
|
||||
|
|
|
@ -411,4 +411,4 @@ def is_json(potential_json: str) -> bool:
|
|||
|
||||
|
||||
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_HOST = config.mine.shared.settings.mail.domain;
|
||||
NOTIFIER_MAIL_PORT = builtins.toString config.mine.shared.settings.mail.ports.submissions;
|
||||
|
||||
# production
|
||||
FLASK_ENV = "production";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue