Skip to content

Commit

Permalink
video: create persistent internal user
Browse files Browse the repository at this point in the history
  • Loading branch information
kolewu committed Oct 12, 2020
1 parent 342d24b commit b3e6ef2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 10 additions & 2 deletions team-video/templates/deploy_prosody.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ spec:
lifecycle:
postStart:
exec:
command: ["/bin/bash", "-c", "sleep 60; prosodyctl --config /config/prosody.cfg.lua register {{ .Values.auth.admin.user }} {{ .Values.app.name }}.{{ .Values.app.domain }} {{ .Values.auth.admin.password }}"]
command:
- "/bin/bash"
- "-c"
- |-
sleep 60
{{- $app := .Values.app }}
{{- range .Values.auth.users }}
prosodyctl --config /config/prosody.cfg.lua register {{ .name }} {{ $app.name }}.{{ $app.domain }} {{ .password }}
{{- end }}
{{end}}
image: jitsi/prosody
imagePullPolicy: {{ .Values.app.pullpolicy }}
Expand Down Expand Up @@ -71,4 +79,4 @@ spec:
- name: XMPP_INTERNAL_MUC_DOMAIN
value: internal-muc.{{ .Values.app.name }}.{{ .Values.app.domain }}
- name: TZ
value: Europe/Paris
value: Europe/Paris
6 changes: 3 additions & 3 deletions team-video/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ auth:
enabled: false
guests: true
type: "internal"
admin:
user: admin
password: "jitsiAdmin"
users:
- name: admin
password: "jitsiAdmin"

logLevel: "info"
hideWelcomePage: true
Expand Down
6 changes: 3 additions & 3 deletions values-video.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ auth:
guests: true
# internal auth
type: internal
admin:
user: admin
password: "jitsiAdmin"
users:
- user: admin
password: "jitsiAdmin"
# ldap auth - remove above "type: internal" auth to use it
#type: ldap
#ldapauthmethod: bind
Expand Down

0 comments on commit b3e6ef2

Please sign in to comment.