minor fixes
This commit is contained in:
parent
5664853ca7
commit
44189d5f0c
1 changed files with 4 additions and 5 deletions
|
@ -63,10 +63,9 @@
|
||||||
|
|
||||||
(defn config-from-document []
|
(defn config-from-document []
|
||||||
(let [postgres-data-volume-path (br/get-content-from-element "postgres-data-volume-path" :optional true)
|
(let [postgres-data-volume-path (br/get-content-from-element "postgres-data-volume-path" :optional true)
|
||||||
issuer (br/get-content-from-element "issuer" :optional true :deserializer keyword)
|
issuer (br/get-content-from-element "issuer" :optional true)
|
||||||
app-name (br/get-content-from-element "app-name" :optional true)
|
app-name (br/get-content-from-element "app-name" :optional true)
|
||||||
domain-whitelist (br/get-content-from-element "domain-whitelist" :optional true)]
|
domain-whitelist (br/get-content-from-element "domain-whitelist" :optional true)]
|
||||||
(js/console.log postgres-data-volume-path)
|
|
||||||
(merge
|
(merge
|
||||||
{:fqdn (br/get-content-from-element "fqdn")}
|
{:fqdn (br/get-content-from-element "fqdn")}
|
||||||
(when (not (st/blank? postgres-data-volume-path))
|
(when (not (st/blank? postgres-data-volume-path))
|
||||||
|
@ -84,9 +83,9 @@
|
||||||
(br/validate! "mailer-from" ::gitea/mailer-from)
|
(br/validate! "mailer-from" ::gitea/mailer-from)
|
||||||
(br/validate! "mailer-host-port" ::gitea/mailer-host-port)
|
(br/validate! "mailer-host-port" ::gitea/mailer-host-port)
|
||||||
(br/validate! "service-noreply-address" ::gitea/service-noreply-address)
|
(br/validate! "service-noreply-address" ::gitea/service-noreply-address)
|
||||||
(br/validate! "issuer" ::gitea/issuer :optional true :deserializer keyword)
|
(br/validate! "issuer" ::gitea/issuer :optional true)
|
||||||
(br/validate! "app-name" ::gitea/default-app-name)
|
(br/validate! "app-name" ::gitea/default-app-name :optional true)
|
||||||
(br/validate! "domain-whitelist" ::gitea/service-domain-whitelist)
|
(br/validate! "domain-whitelist" ::gitea/service-domain-whitelist :optional true)
|
||||||
(br/validate! "postgres-data-volume-path" ::pgc/postgres-data-volume-path :optional true)
|
(br/validate! "postgres-data-volume-path" ::pgc/postgres-data-volume-path :optional true)
|
||||||
(br/validate! "auth" gitea/auth? :deserializer edn/read-string)
|
(br/validate! "auth" gitea/auth? :deserializer edn/read-string)
|
||||||
(br/set-form-validated!))
|
(br/set-form-validated!))
|
||||||
|
|
Loading…
Reference in a new issue