mirror of
https://github.com/truenas/charts.git
synced 2026-04-06 20:29:13 +08:00
Correctly set server_name so that it doesn't include the node port
This commit is contained in:
@@ -13,7 +13,7 @@ portals:
|
||||
protocols:
|
||||
- "https"
|
||||
host:
|
||||
- "$variable-server_name"
|
||||
- "$variable-config.server_name"
|
||||
ports:
|
||||
- "$variable-nodePort"
|
||||
path: "/loleaflet/dist/admin/admin.html"
|
||||
|
||||
@@ -57,7 +57,7 @@ spec:
|
||||
{{ $envList = mustAppend $envList (dict "name" "cert_domain" "value" "192.168.0.3") }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "extra_params" "value" $envConfig.extra_params) }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "DONT_GEN_SSL_CERT" "value" $envConfig.DONT_GEN_SSL_CERT) }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "server_name" "value" $envConfig.server_name) }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "server_name" "value" (printf "%v:%v" $envConfig.server_name .Values.nodePort)) }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "username" "valueFromSecret" true "secretName" $secretName "secretKey" "username") }}
|
||||
{{ $envList = mustAppend $envList (dict "name" "password" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }}
|
||||
{{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
|
||||
|
||||
Reference in New Issue
Block a user