Files
chart/library/ix-dev/charts/nextcloud/templates/service.yaml
Stavros Kois 53a7e536aa NAS-122852 / 23.10 / Allow setting timeouts for nginx and upload size to both php and nginx (#1380)
* Allow setting timeouts and upload size for nginx when certificate is selected

* configure php upload size

* expand description

* add validation for min values

* bump
2023-07-27 20:24:30 +03:00

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 }}