Compare commits
3 commits
9ac0665ab4
...
934eda5b35
Author | SHA1 | Date | |
---|---|---|---|
934eda5b35 | |||
b988501af7 | |||
ac866a2bcc |
5 changed files with 36 additions and 2 deletions
0
infrastructure/excalidraw-backend/test/.keep
Normal file
0
infrastructure/excalidraw-backend/test/.keep
Normal file
|
@ -37,5 +37,6 @@
|
|||
(jitsi/generate-deployment config)]
|
||||
(jitsi/generate-ingress-web config)
|
||||
(jitsi/generate-ingress-etherpad config)
|
||||
(jitsi/generate-ingress-excalidraw-backend config)
|
||||
(when (:contains? config :mon-cfg)
|
||||
(mon/generate (:mon-cfg config) (:mon-auth auth)))))))
|
||||
|
|
|
@ -51,6 +51,15 @@
|
|||
:fqdns [(str "etherpad." (:fqdn config))]}
|
||||
config)))
|
||||
|
||||
(defn-spec generate-ingress-excalidraw-backend cp/map-or-seq?
|
||||
[config config?]
|
||||
(ing/generate-ingress-and-cert
|
||||
(merge
|
||||
{:service-name "excalidraw-backend"
|
||||
:service-port 3002
|
||||
:fqdns [(str "excalidraw-backend." (:fqdn config))]}
|
||||
config)))
|
||||
|
||||
(defn-spec generate-secret-jitsi cp/map-or-seq?
|
||||
[auth auth?]
|
||||
(let [{:keys [jvb-auth-password jicofo-auth-password jicofo-component-secret]} auth]
|
||||
|
@ -76,4 +85,6 @@
|
|||
(yaml/load-as-edn "jitsi/deployment.yaml")
|
||||
(cm/replace-all-matching-values-by-new-value "REPLACE_JITSI_FQDN" fqdn)
|
||||
(cm/replace-all-matching-values-by-new-value "REPLACE_ETHERPAD_URL"
|
||||
(str "https://etherpad." fqdn "/p/")))))
|
||||
(str "https://etherpad." fqdn "/p/"))
|
||||
(cm/replace-all-matching-values-by-new-value "REPLACE_EXCALIDRAW_BACKEND_URL"
|
||||
(str "https://excalidraw-backend." fqdn)))))
|
||||
|
|
|
@ -97,6 +97,10 @@ spec:
|
|||
value: "true"
|
||||
- name: ETHERPAD_PUBLIC_URL
|
||||
value: REPLACE_ETHERPAD_URL
|
||||
- name: WHITEBOARD_ENABLED
|
||||
value: "true"
|
||||
- name: WHITEBOARD_COLLAB_SERVER_PUBLIC_URL
|
||||
value: REPLACE_EXCALIDRAW_BACKEND_URL
|
||||
- name: jvb
|
||||
image: jitsi/jvb:stable-8922-1
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
@ -146,3 +150,8 @@ spec:
|
|||
key: JICOFO_AUTH_PASSWORD
|
||||
- name: TZ
|
||||
value: Europe/Berlin
|
||||
- name: excalidraw-backend
|
||||
image: domaindrivenarchitecture/excalidraw-backend
|
||||
env:
|
||||
- name: PORT
|
||||
value: "3002"
|
13
src/main/resources/jitsi/excalidraw-backend-service.yaml
Normal file
13
src/main/resources/jitsi/excalidraw-backend-service.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
service: excalidraw-backend
|
||||
name: excalidraw-backend
|
||||
spec:
|
||||
ports:
|
||||
- name: excalidraw-backend
|
||||
port: 3002
|
||||
targetPort: 3002
|
||||
selector:
|
||||
app: jitsi
|
Loading…
Reference in a new issue