Allow custom cron config
This commit is contained in:
parent
8a7a57f405
commit
aa8d1db44f
|
@ -433,11 +433,6 @@ services:
|
|||
cronExpression: "@every 10m"
|
||||
logger:
|
||||
level: debug
|
||||
rotate_oidc_keys:
|
||||
command: ["/usr/libexec/lemonldap-ng/bin/rotateOidcKeys"]
|
||||
cronExpression: "15 5 0 * * 6"
|
||||
logger:
|
||||
level: debug
|
||||
{{- end }}
|
||||
|
||||
_EOT
|
||||
|
|
|
@ -2,22 +2,28 @@ services:
|
|||
lemonldap:
|
||||
type: master
|
||||
command: ["lemonldap-ng"]
|
||||
[[- if ne .llng.portal.cron.clean_local_cache "" ]]
|
||||
local_cache:
|
||||
command: ["/usr/libexec/lemonldap-ng/bin/purgeLocalCache"]
|
||||
cronExpression: [[ .llng.portal.cron.clean_local_cache | toJSON ]]
|
||||
logger:
|
||||
level: debug
|
||||
[[- end ]]
|
||||
nginx:
|
||||
command: ["nginx", "-c", "${LLNG_NGINX_CONF}"]
|
||||
[[- if ne .llng.portal.cron.clean_global_cache "" ]]
|
||||
{{- if eq (env "NOMAD_ALLOC_INDEX") "0" }}
|
||||
global_cache:
|
||||
command: ["/usr/libexec/lemonldap-ng/bin/purgeCentralCache"]
|
||||
cronExpression: [[ .llng.portal.cron.clean_global_cache | toJSON ]]
|
||||
logger:
|
||||
level: debug
|
||||
[[- end ]]
|
||||
[[- if ne .llng.portal.cron.rotate_oidc_keys "" ]]
|
||||
rotate_oidc_keys:
|
||||
command: ["/usr/libexec/lemonldap-ng/bin/rotateOidcKeys"]
|
||||
cronExpression: [[ .llng.portal.cron.rotate_oidc_keys | toJSON ]]
|
||||
logger:
|
||||
level: debug
|
||||
[[- end ]]
|
||||
{{- end }}
|
||||
|
|
|
@ -85,8 +85,8 @@ llng:
|
|||
|
||||
# Cron jobs
|
||||
cron:
|
||||
# Rotate oidc keys (default is weekly)
|
||||
rotate_oidc_keys: '15 5 0 * * 6'
|
||||
# Rotate oidc keys (default is disabled)
|
||||
rotate_oidc_keys: ''
|
||||
# Cleanup global session store by removing obsolete ones
|
||||
# Note that this task will only be scheduled on the first allocation (NOMAD_ALLOC_INDEX 0)
|
||||
# as there's no need to do the cleanup on every instance
|
||||
|
|
Loading…
Reference in New Issue