diff options
author | Jeremy Lin <[email protected]> | 2021-04-02 20:16:49 -0700 |
---|---|---|
committer | Jeremy Lin <[email protected]> | 2021-04-05 23:07:15 -0700 |
commit | 73ff8d79f70b36483d1d33587cdc9549c8e472bd (patch) | |
tree | 4bda2dc39f4e6f0c7738e4f94ecc4ca0e75582bd /.env.template | |
parent | a82c04910f259fd0296085cc9aa9280df5881a87 (diff) | |
download | vaultwarden-73ff8d79f70b36483d1d33587cdc9549c8e472bd.tar.gz vaultwarden-73ff8d79f70b36483d1d33587cdc9549c8e472bd.zip |
Add a generic job scheduler
Also rewrite deletion of old sends using the job scheduler.
Diffstat (limited to '.env.template')
-rw-r--r-- | .env.template | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.env.template b/.env.template index a85ce22d..ce571ff6 100644 --- a/.env.template +++ b/.env.template @@ -56,6 +56,19 @@ # WEBSOCKET_ADDRESS=0.0.0.0 # WEBSOCKET_PORT=3012 +## Job scheduler settings +## +## Job schedules use a cron-like syntax (as parsed by https://crates.io/crates/cron), +## and are always in terms of UTC time (regardless of your local time zone settings). +## +## How often (in ms) the job scheduler thread checks for jobs that need running. +## Set to 0 to globally disable scheduled jobs. +# JOB_POLL_INTERVAL_MS=30000 +## +## Cron schedule of the job that checks for Sends past their deletion date. +## Defaults to hourly. Set blank to disable this job. +# SEND_PURGE_SCHEDULE="0 0 * * * *" + ## Enable extended logging, which shows timestamps and targets in the logs # EXTENDED_LOGGING=true |