Upgrades to HTTPS and fixed bug with nefarious

This commit is contained in:
Aner Zakobar
2022-04-17 21:28:49 +03:00
parent d2525b6ce2
commit 403cf13dca
5 changed files with 26 additions and 2 deletions
+4
View File
@@ -81,7 +81,11 @@ metadata:
name: gitea-ingress
annotations:
kubernetes.io/ingress.allow-http: "false"
traefik.ingress.kubernetes.io/router.middlewares: {{ .Release.Namespace }}-redirect@kubernetescrd
spec:
tls:
- hosts:
- git.{{ .Values.homey.url }}
rules:
- host: git.{{ .Values.homey.url }}
http:
+1
View File
@@ -49,6 +49,7 @@ metadata:
kubernetes.io/ingress.allow-http: "false"
ingress.kubernetes.io/auth-type: forward
ingress.kubernetes.io/auth-url: http://ldap-auth.{{ .Release.Namespace }}.svc.cluster.local:80
traefik.ingress.kubernetes.io/router.middlewares: {{ .Release.Namespace }}-redirect@kubernetescrd
spec:
tls:
- hosts:
+5
View File
@@ -86,7 +86,12 @@ kind: Ingress
metadata:
name: jellyfin-ingress
annotations:
kubernetes.io/ingress.allow-http: "false"
traefik.ingress.kubernetes.io/router.middlewares: {{ .Release.Namespace }}-redirect@kubernetescrd
spec:
tls:
- hosts:
- jellyfin.{{ .Values.homey.internal_url }}
rules:
- host: jellyfin.{{ .Values.homey.internal_url }}
http:
+8 -1
View File
@@ -4,7 +4,14 @@ kind: Secret
metadata:
name: nefarious-admin
annotations:
secret-generator.v1.mittwald.de/autogenerate: password
"helm.sh/resource-policy": "keep"
type: Opaque
data:
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "nefarious-admin") | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
{{- $pass := (get $secretData "password") | default (randAlphaNum 32 | b64enc) }}
password: {{ $pass | quote }}
---
apiVersion: apps/v1
kind: Deployment
+7
View File
@@ -112,6 +112,8 @@ spec:
secretKeyRef:
name: nextcloud-postgres-pass
key: password
- name: OVERWRITEPROTOCOL
value: "https"
volumes:
- name: nextcloud-volume
persistentVolumeClaim:
@@ -134,7 +136,12 @@ kind: Ingress
metadata:
name: nextcloud-ingress
annotations:
kubernetes.io/ingress.allow-http: "false"
traefik.ingress.kubernetes.io/router.middlewares: {{ .Release.Namespace }}-redirect@kubernetescrd
spec:
tls:
- hosts:
- nextcloud.{{ .Values.homey.url }}
rules:
- host: nextcloud.{{ .Values.homey.url }}
http: