Merge branch 'main' of gitlab.com:domaindrivenarchitecture/c4k-forgejo into main

This commit is contained in:
bom 2023-06-16 14:20:05 +02:00
commit 556a44e960
3 changed files with 4 additions and 6 deletions

View file

@ -8,15 +8,15 @@
[dda.c4k-forgejo.backup :as backup]
[dda.c4k-common.postgres :as postgres]))
(def config-defaults {:issuer "staging"})
(def config-defaults {:issuer "staging", :deploy-federated "false"})
(def config? (s/keys :req-un [::forgejo/fqdn
::forgejo/deploy-federated
::forgejo/mailer-from
::forgejo/mailer-host
::forgejo/mailer-port
::forgejo/service-noreply-address]
:opt-un [::forgejo/issuer
::forgejo/deploy-federated
::forgejo/default-app-name
::forgejo/service-domain-whitelist
::backup/restic-repository

View file

@ -45,15 +45,13 @@
(s/def ::issuer pred/letsencrypt-issuer?)
(s/def ::volume-total-storage-size (partial pred/int-gt-n? 5))
(def config-defaults {:issuer "staging"})
(def config? (s/keys :req-un [::fqdn
::deploy-federated
::mailer-from
::mailer-host
::mailer-port
::service-noreply-address]
:opt-un [::issuer
::deploy-federated
::default-app-name
::service-domain-whitelist]))

View file

@ -110,7 +110,7 @@
(-> (cm/generate-common
(config-from-document)
(br/get-content-from-element "auth" :deserializer edn/read-string)
forgejo/config-defaults
core/config-defaults
core/k8s-objects)
(br/set-output!)))))
(add-validate-listener "fqdn")