mirror of
https://github.com/truenas/charts.git
synced 2026-05-04 12:53:22 +08:00
* init commit * add few templates * add initial implementation * typo * add host * fix lint * whops * quote * fix permisions * no port * fix probes * test user * readme * add ui * typo * use shortcut for regex * add redis on metadata * clean notes * fixed path * move down * fix upgrade json
19 lines
407 B
Smarty
19 lines
407 B
Smarty
{{- define "n8n.portal" -}}
|
|
{{- $protocol := "http" -}}
|
|
{{- if .Values.n8nNetwork.certificateID -}}
|
|
{{- $protocol = "https" -}}
|
|
{{- end -}}
|
|
{{- $host := .Values.n8nConfig.webHost -}}
|
|
{{- $port := .Values.n8nNetwork.webPort -}}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: portal
|
|
data:
|
|
port: {{ $port | quote }}
|
|
path: "/"
|
|
protocol: {{ $protocol }}
|
|
host: {{ $host }}
|
|
{{- end -}}
|