a.ioot.xyz: use nginx configuration from /home/www

This commit is contained in:
Andrei Kartashov 2026-07-27 11:29:01 +07:00
parent 153aa9af0e
commit 6cac230642

View file

@ -20,6 +20,9 @@ spec:
hostPath: hostPath:
path: /home/www/a.ioot.xyz path: /home/www/a.ioot.xyz
type: Directory type: Directory
- name: nginxdefaultconf
hostPath:
path: /home/www/nginx.vh.default.conf
containers: containers:
- name: aiootxyz - name: aiootxyz
image: nginx:alpine image: nginx:alpine
@ -29,6 +32,8 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /usr/share/nginx/html - mountPath: /usr/share/nginx/html
name: aiootxyz name: aiootxyz
- mountPath: /etc/nginx/conf.d/default.conf
name: nginxdefaultconf
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
@ -49,6 +54,9 @@ metadata:
name: aiootxyz name: aiootxyz
annotations: annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
spec: spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls: