mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 17:46:10 +02:00
✨ Set smaller default deletion delay for devenv
And make the deletion delay configurable
This commit is contained in:
parent
7b7820952c
commit
34534c924f
3 changed files with 10 additions and 1 deletions
|
@ -101,6 +101,8 @@
|
|||
(s/def ::audit-log-archive-uri ::us/string)
|
||||
(s/def ::audit-log-http-handler-concurrency ::us/integer)
|
||||
|
||||
(s/def ::deletion-delay ::dt/duration)
|
||||
|
||||
(s/def ::admins ::us/set-of-valid-emails)
|
||||
(s/def ::file-change-snapshot-every ::us/integer)
|
||||
(s/def ::file-change-snapshot-timeout ::dt/duration)
|
||||
|
@ -214,6 +216,7 @@
|
|||
(s/keys :opt-un [::secret-key
|
||||
::flags
|
||||
::admins
|
||||
::deletion-delay
|
||||
::allow-demo-users
|
||||
::audit-log-archive-uri
|
||||
::audit-log-http-handler-concurrency
|
||||
|
@ -380,7 +383,8 @@
|
|||
(defonce ^:dynamic flags (parse-flags config))
|
||||
|
||||
(def deletion-delay
|
||||
(dt/duration {:days 7}))
|
||||
(or (c/get config :deletion-delay)
|
||||
(dt/duration {:days 7})))
|
||||
|
||||
(defn get
|
||||
"A configuration getter. Helps code be more testable."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue