Flesh out homeserver

This commit is contained in:
2025-12-03 01:35:41 -06:00
parent 6b260de324
commit c6785f0b9b

View File

@@ -2,23 +2,28 @@
(def config (def config
{:stack [:vault:prepare [:k8s :pvc :deployment :service :httproute]] {:stack [:vault:prepare [:k8s :pvc :deployment :service :httproute]]
:image-port 6167
:app-namespace "matrix" :app-namespace "matrix"
:app-name "tuwunel" :app-name "tuwunel"
:k8s:pvc-opts :k8s:pvc-opts
{"conduwuit-db" {:storageClass "hcloud-volumes" {:metadata {:name "conduwuit-db"
:accessModes ["ReadWriteOnce"] :namespace "matrix"}
:storage "20Gi"}} :spec {:storageClassName "hcloud-volumes"
:accessModes ["ReadWriteOnce"]
:resources {:requests {:storage "50Gi"}}}}
:k8s:deployment-opts :k8s:deployment-opts
{:spec {:spec
{:template {:strategy {:type "Recreate"}
{:spec :template
{:metadata {:annotations {"backup.velero.io/backup-volumes" "db"}}
:spec
{:containers {:containers
[{:name 'app-name [{:name 'app-name
:image '(str repo "/tuwunel:latest") :image '(str repo "/tuwunel:latest")
:envFrom [{:secretRef {:name '(str app-name "-secrets")}}] :envFrom [{:secretRef {:name '(str app-name "-secrets")}}]
:ports [{:containerPort 'port}]
:volumeMounts [{:name "db" :mountPath "/var/lib/conduwuit"} :volumeMounts [{:name "db" :mountPath "/var/lib/conduwuit"}
#_{:name "discord-reg" #_{:name "discord-reg"
:mountPath "/etc/conduwuit/discord-registration.yaml" :mountPath "/etc/conduwuit/discord-registration.yaml"
@@ -34,12 +39,12 @@
:k8s:httproute-opts :k8s:httproute-opts
{:spec {:spec
{:hostnames ['homeserver] {:hostnames ['host]
:rules [{:matches [{:path {:type "PathPrefix" :value "/_matrix/media"}}] :rules [{:matches [{:path {:type "PathPrefix" :value "/_matrix/media"}}]
:backendRefs [{:name "mmr" :port 8000}]} :backendRefs [{:name "matrix-media-repo" :port 80}]}
{:matches [{:path {:type "PathPrefix" :value "/_matrix/client/v1/media"}}] {:matches [{:path {:type "PathPrefix" :value "/_matrix/client/v1/media"}}]
:backendRefs [{:name "mmr" :port 8000}]} :backendRefs [{:name "matrix-media-repo" :port 80}]}
{:matches [{:path {:type "PathPrefix" :value "/.well-known/matrix"}}] {:matches [{:path {:type "PathPrefix" :value "/.well-known/matrix"}}]
:backendRefs [{:name "matrix-well-known" :port 80}]} :backendRefs [{:name "matrix-well-known" :port 80}]}