Skip to content

Commit

Permalink
Merge pull request #46 from WyriHaximusNet/redirect-add-support-for-e…
Browse files Browse the repository at this point in the history
…nforcing-https

[redirect] Add support for enforcing HTTPS
  • Loading branch information
WyriHaximus authored Oct 23, 2020
2 parents 7e72917 + 48bc087 commit 0cb0617
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/redirect/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Redirect
home: https://github.com/wyrihaximusnet/docker-redirect
icon: https://helm.wyrihaximus.net/images/charts/redirect.png
type: application
version: 0.8.0
version: 0.9.0
kubeVersion: ^1.18
appVersion: random
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/redirect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Full configuration example:
redirect:
# The default fallback is use in case the application can't find a domain to redirect to within the other configuration options
defaultFallbackTarget: https://www.wyrihaximus.net/
enforceHttps: true
buildin: wwwToNonWww
hosts:
www.ceesjankiewiet.nl: wyrihaximus.net
Expand Down Expand Up @@ -60,4 +61,3 @@ Keep in mind that the configuration options are executed in the following order:
* The default tag is random to randomly cycle through the different implementations, here is the [why](https://github.com/WyriHaximusNet/docker-redirect#why).
* Comes with a pod
* Replace oldest pod every week to hook into the weekly random image retagging

3 changes: 3 additions & 0 deletions charts/redirect/ci/single-replica-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ cron:

hpa:
enable: true

redirect:
enforceHttps: false
1 change: 1 addition & 0 deletions charts/redirect/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
data:
config.yaml: |
defaultFallbackTarget: {{ .Values.redirect.defaultFallbackTarget }}
enforceHttps: {{ .Values.redirect.enforceHttps }}
buildin:
wwwToNonWww: {{ if eq .Values.redirect.buildin "wwwToNonWww" -}}true{{- else -}}false{{- end }}
nonWwwToWww: {{ if eq .Values.redirect.buildin "nonWwwToWww" -}}true{{- else -}}false{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/redirect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
redirect:
# The default fallback is use in case the application can't find a domain to redirect to within the other configuration options
defaultFallbackTarget: https://www.wyrihaximus.net/
enforceHttps: false
buildin: wwwToNonWww
hosts:
www.ceesjankiewiet.nl: wyrihaximus.net
Expand Down

0 comments on commit 0cb0617

Please sign in to comment.