mirror of
https://github.com/truenas/charts.git
synced 2026-04-28 20:42:23 +08:00
* Allow setting timeouts and upload size for nginx when certificate is selected * configure php upload size * expand description * add validation for min values * bump
11 lines
517 B
YAML
11 lines
517 B
YAML
{{ $svc := .Values.service }}
|
|
{{ $ports := list }}
|
|
{{ if eq (include "nginx.certAvailable" .) "true" }}
|
|
{{ $ports = mustAppend $ports (dict "name" "nginx-https" "targetPort" .Values.service.nodePort "port" .Values.service.nodePort "nodePort" $svc.nodePort) }}
|
|
{{ else }}
|
|
{{ $ports = mustAppend $ports (dict "name" "http" "port" 80 "nodePort" $svc.nodePort) }}
|
|
{{ end }}
|
|
{{ $params := . }}
|
|
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
|
|
{{ include "common.classes.service" $params }}
|