mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
* Added TLS support for web - Added optional configurations `cert_file` and `key_file` to run web server with https Signed-off-by: Dmytro Bondar <git@bonddim.com> * Helm chart update - Refactored Ingress to use one host only (`config.web.external_url` is required) - Added Certificate resource template (secret is mounted to container into `/app/certs/`) - Added support for service with mixed protocols (exposes UI and Wireguard ports on same IP) - Added helm-docs target to makefile - Changed pod labels to use selectorLabels - Removed default probes (app runs without healthy web) - Removed sections from README Signed-off-by: Dmytro Bondar <git@bonddim.com> * Fix chart workflow path filter * Fix chart lint issue * Skip clean-up tested chart * Try k3d cluster --------- Signed-off-by: Dmytro Bondar <git@bonddim.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "wg-portal.fullname" . }}
|
|
labels: {{- include "wg-portal.labels" . | nindent 4 }}
|
|
stringData:
|
|
config.yml: |
|
|
advanced:
|
|
start_listen_port: {{ .Values.service.wireguard.ports | sortAlpha | first }}
|
|
{{- with .Values.config.advanced }}
|
|
{{- tpl (toYaml (omit . "start_listen_port")) $ | nindent 6 }}
|
|
{{- end }}
|
|
|
|
{{- with .Values.config.auth }}
|
|
auth: {{- tpl (toYaml .) $ | nindent 6 }}
|
|
{{- end }}
|
|
|
|
{{- with mustMerge .Values.config.core (include "wg-portal.admin" . | fromYaml) }}
|
|
core: {{- tpl (toYaml .) $ | nindent 6 }}
|
|
{{- end }}
|
|
|
|
{{- with .Values.config.database }}
|
|
database: {{- tpl (toYaml .) $ | nindent 6 }}
|
|
{{- end }}
|
|
|
|
{{- with .Values.config.mail }}
|
|
mail: {{- tpl (toYaml .) $ | nindent 6 }}
|
|
{{- end }}
|
|
|
|
{{- with .Values.config.statistics }}
|
|
statistics: {{- tpl (toYaml .) $ | nindent 6 }}
|
|
{{- end }}
|
|
web:
|
|
listening_address: :{{ .Values.service.web.port }}
|
|
{{- with .Values.config.web }}
|
|
{{- tpl (toYaml (omit . "listening_address")) $ | nindent 6 }}
|
|
{{- end }}
|