mirror of
https://github.com/truenas/charts.git
synced 2026-06-28 00:06:45 +08:00
21 lines
622 B
Smarty
21 lines
622 B
Smarty
{{- define "minio.portal" -}}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: portal
|
|
data:
|
|
{{- $url := urlParse .Values.minioNetwork.consoleUrl -}}
|
|
{{- $protocol := $url.scheme -}}
|
|
{{- $host := $url.hostname -}}
|
|
{{- $port := $url.host | replace $host "" | replace ":" "" -}}
|
|
{{/* If user used SCALE certificate, then force https */}}
|
|
{{- if eq "https" (include "minio.scheme" $) -}}
|
|
{{- $protocol = "https" -}}
|
|
{{- end }}
|
|
path: "/"
|
|
port: {{ $port | default .Values.minioNetwork.webPort | quote }}
|
|
protocol: {{ $protocol | default "http" }}
|
|
host: {{ $host | default "$node_ip" }}
|
|
{{- end -}}
|