36 lines
989 B
YAML
36 lines
989 B
YAML
|
- op: replace
|
||
|
path: /metadata/annotations/nginx.ingress.kubernetes.io~1proxy-body-size
|
||
|
value: "1G"
|
||
|
- op: replace
|
||
|
path: /metadata/annotations/nginx.ingress.kubernetes.io~1enable-cors
|
||
|
value: "true"
|
||
|
- op: replace
|
||
|
path: /metadata/annotations/nginx.ingress.kubernetes.io~1cors-allow-headers
|
||
|
value: "X-Forwarded-For"
|
||
|
|
||
|
# En cas de besoin
|
||
|
#- op: add
|
||
|
# path: /metadata/annotations/nginx.ingress.kubernetes.io~1client_max_body_size
|
||
|
# value: "100m"
|
||
|
|
||
|
- op: replace
|
||
|
path: /spec/rules/0/host
|
||
|
value: nxt.cadoles.fr
|
||
|
- op: replace
|
||
|
path: /spec/rules/0/http/paths/0/path
|
||
|
value: /
|
||
|
- op: replace
|
||
|
path: /spec/rules/0/http/paths/0/pathType
|
||
|
value: Prefix
|
||
|
- op: replace
|
||
|
path: /spec/rules/0/http/paths/0/backend/service/name
|
||
|
value: nextcloud
|
||
|
- op: replace
|
||
|
path: /spec/rules/0/http/paths/0/backend/service/port/number
|
||
|
value: 80
|
||
|
|
||
|
|
||
|
|
||
|
# logiquement path =
|
||
|
# path: /metadata/annotations/nginx.ingress.kubernetes.io/proxy-body-size
|
||
|
# sauf que ... json voila, "/" est à remplacer par ~1
|