Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
indiehost
tech
infrastructure
charts
Commits
71dc6589
Verified
Commit
71dc6589
authored
Sep 30, 2021
by
Hugo
Browse files
add redirects
parent
aa56d9f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
hedgedoc/templates/redirects.yaml
0 → 100644
View file @
71dc6589
{{
if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress"
}}
{{
- range $i
,
$val
:
= .Values.ingress.redirects
}}
apiVersion
:
networking.k8s.io/v1
kind
:
Ingress
metadata
:
annotations
:
kubernetes.io/tls-acme
:
"
true"
{{
- if $val.permanent
}}
nginx.ingress.kubernetes.io/permanent-redirect
:
https://{{ tpl $.Values.domain $ }}
{{
- else
}}
nginx.ingress.kubernetes.io/temporal-redirect
:
https://{{ tpl $.Values.domain $ }}
{{
- end
}}
labels
:
{{
- include "hedgedoc.labels" $ | nindent 4
}}
name
:
{{
tpl $.Values.fqdn $
}}
-redirect-{{ $i }}
spec
:
rules
:
-
host
:
{{
$val.domain
}}
http
:
paths
:
-
backend
:
service
:
name
:
{{
tpl $.Values.fqdn $
}}
-app
port
:
name
:
http
path
:
/
pathType
:
Prefix
tls
:
-
hosts
:
-
{{
$val.domain
}}
secretName
:
{{
tpl $.Values.fqdn $
}}
-redirect-{{ $i }}-tls
{{
end -
}}
{{
end
}}
\ No newline at end of file
hedgedoc/templates/redirects_old.yaml
0 → 100644
View file @
71dc6589
{{
if not (.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress")
}}
{{
- range $i
,
$val
:
= .Values.ingress.redirects
}}
apiVersion
:
networking.k8s.io/v1beta1
kind
:
Ingress
metadata
:
annotations
:
kubernetes.io/tls-acme
:
"
true"
{{
- if $val.permanent
}}
nginx.ingress.kubernetes.io/permanent-redirect
:
https://{{ tpl $.Values.domain $ }}
{{
- else
}}
nginx.ingress.kubernetes.io/temporal-redirect
:
https://{{ tpl $.Values.domain $ }}
{{
- end
}}
labels
:
{{
- include "hedgedoc.labels" $ | nindent 4
}}
name
:
{{
tpl $.Values.fqdn $
}}
-redirect-{{ $i }}
spec
:
rules
:
-
host
:
{{
$val.domain
}}
http
:
paths
:
-
backend
:
serviceName
:
{{
tpl $.Values.fqdn $
}}
-app
servicePort
:
http
path
:
/
tls
:
-
hosts
:
-
{{
$val.domain
}}
secretName
:
{{
tpl $.Values.fqdn $
}}
-redirect-{{ $i }}-tls
{{
end -
}}
{{
end
}}
\ No newline at end of file
hedgedoc/values.yaml
View file @
71dc6589
...
...
@@ -24,3 +24,6 @@ pg:
credentialsSuffix
:
"
.credentials"
autoMigrateDomain
:
true
ingress
:
redirect
:
[]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment