redirect anything to https

pull/9/head
Wei He 4 years ago committed by Wei He
parent 6fc2437487
commit 9a0fbf7f6a
  1. 15
      jitsi/templates/ingressroute-redir.yaml
  2. 8
      jitsi/templates/middleware-redirectregex-any.yaml
  3. 4
      traefik-config.yaml.sh

@ -0,0 +1,15 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: redir
spec:
entryPoints:
- web
routes:
- kind: Rule
match: PathPrefix(`/`)
middlewares:
- name: any-redirectregex
services:
- name: {{ .Release.Name }}-jitsi-meet-web
port: 80

@ -0,0 +1,8 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: any-redirectregex
spec:
redirectRegex:
regex: ^http://[^/]+/(.*)
replacement: https://{{ .Values.fqdn }}/${1}

@ -21,8 +21,8 @@ spec:
ports:
# traefik:
# expose: true
web:
redirectTo: websecure
# web:
# redirectTo: websecure
xmpp-prod:
port: 5222
expose: true

Loading…
Cancel
Save