mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 22:06:13 +02:00
🐛 Use proper config value.
This commit is contained in:
parent
ca63ff621a
commit
74a168d87e
1 changed files with 14 additions and 14 deletions
|
@ -94,7 +94,7 @@
|
||||||
|
|
||||||
:app.http.assets/handlers
|
:app.http.assets/handlers
|
||||||
{:metrics (ig/ref :app.metrics/metrics)
|
{:metrics (ig/ref :app.metrics/metrics)
|
||||||
:assets-path (:assets-path cfg/config)
|
:assets-path (:assets-path config)
|
||||||
:storage (ig/ref :app.storage/storage)
|
:storage (ig/ref :app.storage/storage)
|
||||||
:cache-max-age (dt/duration {:hours 24})
|
:cache-max-age (dt/duration {:hours 24})
|
||||||
:signature-max-age (dt/duration {:hours 24 :minutes 5})}
|
:signature-max-age (dt/duration {:hours 24 :minutes 5})}
|
||||||
|
@ -148,11 +148,11 @@
|
||||||
|
|
||||||
;; RLimit definition for password hashing
|
;; RLimit definition for password hashing
|
||||||
:app.rlimits/password
|
:app.rlimits/password
|
||||||
(:rlimits-password cfg/config)
|
(:rlimits-password config)
|
||||||
|
|
||||||
;; RLimit definition for image processing
|
;; RLimit definition for image processing
|
||||||
:app.rlimits/image
|
:app.rlimits/image
|
||||||
(:rlimits-image cfg/config)
|
(:rlimits-image config)
|
||||||
|
|
||||||
;; A collection of rlimits as hash-map.
|
;; A collection of rlimits as hash-map.
|
||||||
:app.rlimits/all
|
:app.rlimits/all
|
||||||
|
@ -211,10 +211,10 @@
|
||||||
:cron #app/cron "0 0 0 */1 * ?" ;; daily
|
:cron #app/cron "0 0 0 */1 * ?" ;; daily
|
||||||
:fn (ig/ref :app.tasks.tasks-gc/handler)}
|
:fn (ig/ref :app.tasks.tasks-gc/handler)}
|
||||||
|
|
||||||
(when (:telemetry-enabled cfg/config)
|
(when (:telemetry-enabled config)
|
||||||
{:id "telemetry"
|
{:id "telemetry"
|
||||||
:cron #app/cron "0 0 */6 * * ?" ;; every 6h
|
:cron #app/cron "0 0 */6 * * ?" ;; every 6h
|
||||||
:uri (:telemetry-uri cfg/config)
|
:uri (:telemetry-uri config)
|
||||||
:fn (ig/ref :app.tasks.telemetry/handler)})]}
|
:fn (ig/ref :app.tasks.telemetry/handler)})]}
|
||||||
|
|
||||||
:app.tasks/all
|
:app.tasks/all
|
||||||
|
@ -265,18 +265,18 @@
|
||||||
:app.tasks.telemetry/handler
|
:app.tasks.telemetry/handler
|
||||||
{:pool (ig/ref :app.db/pool)
|
{:pool (ig/ref :app.db/pool)
|
||||||
:version (:full cfg/version)
|
:version (:full cfg/version)
|
||||||
:uri (:telemetry-uri cfg/config)
|
:uri (:telemetry-uri config)
|
||||||
:sprops (ig/ref :app.sprops/props)}
|
:sprops (ig/ref :app.sprops/props)}
|
||||||
|
|
||||||
:app.srepl/server
|
:app.srepl/server
|
||||||
{:port (:srepl-port cfg/config)
|
{:port (:srepl-port config)
|
||||||
:host (:srepl-host cfg/config)}
|
:host (:srepl-host config)}
|
||||||
|
|
||||||
:app.sprops/props
|
:app.sprops/props
|
||||||
{:pool (ig/ref :app.db/pool)}
|
{:pool (ig/ref :app.db/pool)}
|
||||||
|
|
||||||
:app.error-reporter/reporter
|
:app.error-reporter/reporter
|
||||||
{:uri (:error-report-webhook cfg/config)
|
{:uri (:error-report-webhook config)
|
||||||
:pool (ig/ref :app.db/pool)
|
:pool (ig/ref :app.db/pool)
|
||||||
:executor (ig/ref :app.worker/executor)}
|
:executor (ig/ref :app.worker/executor)}
|
||||||
|
|
||||||
|
@ -286,18 +286,18 @@
|
||||||
:app.storage/storage
|
:app.storage/storage
|
||||||
{:pool (ig/ref :app.db/pool)
|
{:pool (ig/ref :app.db/pool)
|
||||||
:executor (ig/ref :app.worker/executor)
|
:executor (ig/ref :app.worker/executor)
|
||||||
:backend (:storage-backend cfg/config :fs)
|
:backend (:storage-backend config :fs)
|
||||||
:backends {:s3 (ig/ref [::main :app.storage.s3/backend])
|
:backends {:s3 (ig/ref [::main :app.storage.s3/backend])
|
||||||
:db (ig/ref [::main :app.storage.db/backend])
|
:db (ig/ref [::main :app.storage.db/backend])
|
||||||
:fs (ig/ref [::main :app.storage.fs/backend])
|
:fs (ig/ref [::main :app.storage.fs/backend])
|
||||||
:tmp (ig/ref [::tmp :app.storage.fs/backend])}}
|
:tmp (ig/ref [::tmp :app.storage.fs/backend])}}
|
||||||
|
|
||||||
[::main :app.storage.s3/backend]
|
[::main :app.storage.s3/backend]
|
||||||
{:region (:storage-s3-region cfg/config)
|
{:region (:storage-s3-region config)
|
||||||
:bucket (:storage-s3-bucket cfg/config)}
|
:bucket (:storage-s3-bucket config)}
|
||||||
|
|
||||||
[::main :app.storage.fs/backend]
|
[::main :app.storage.fs/backend]
|
||||||
{:directory (:storage-fs-directory cfg/config)}
|
{:directory (:storage-fs-directory config)}
|
||||||
|
|
||||||
[::tmp :app.storage.fs/backend]
|
[::tmp :app.storage.fs/backend]
|
||||||
{:directory "/tmp/penpot"}
|
{:directory "/tmp/penpot"}
|
||||||
|
@ -305,7 +305,7 @@
|
||||||
[::main :app.storage.db/backend]
|
[::main :app.storage.db/backend]
|
||||||
{:pool (ig/ref :app.db/pool)}}
|
{:pool (ig/ref :app.db/pool)}}
|
||||||
|
|
||||||
(when (:telemetry-server-enabled cfg/config)
|
(when (:telemetry-server-enabled config)
|
||||||
{:app.telemetry/handler
|
{:app.telemetry/handler
|
||||||
{:pool (ig/ref :app.db/pool)
|
{:pool (ig/ref :app.db/pool)
|
||||||
:executor (ig/ref :app.worker/executor)}
|
:executor (ig/ref :app.worker/executor)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue