add cert-manager configuration
This commit is contained in:
@ -1,33 +1,33 @@
|
||||
- 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"
|
||||
#- 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
|
||||
#- 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
|
||||
|
||||
|
||||
|
||||
|
29
overlays/dev/patches/nginx-ingress.yaml
Normal file
29
overlays/dev/patches/nginx-ingress.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: nextcloud
|
||||
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "5m"
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
|
||||
cert-manager.io/issuer: cadoles-selfsigned-ca
|
||||
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- nxt.cadoles.fr
|
||||
secretName: cadoles-selfsigned-ca
|
||||
rules:
|
||||
- host: nxt.cadoles.fr
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nextcloud
|
||||
port:
|
||||
number: 80
|
||||
|
Reference in New Issue
Block a user