Victor Lavaud пре 5 месеци
родитељ
комит
9ab19578f6
1 измењених фајлова са 33 додато и 0 уклоњено
  1. 33 0
      ingress/ingress.yaml

+ 33 - 0
ingress/ingress.yaml

@@ -461,4 +461,37 @@ spec:
             port:
               number: 8000
   ingressClassName: nginx
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: photoprism-ingress
+  namespace: photoprism
+  annotations:
+    cert-manager.io/cluster-issuer: "letsencrypt"
+    acme.cert-manager.io/http01-edit-in-place: "true"
+    nginx.org/client-max-body-size: "500m"
+    nginx.org/proxy-connect-timeout: "60s"
+    nginx.org/proxy-read-timeout: "60s"
+    # Uncomment to allow solving HTTP01 challenge
+    nginx.org/hsts: "false"
+    ingress.kubernetes.io/ssl-redirect: "false"
+    nginx.org/redirect-to-https: "false"
+spec:
+  tls:
+  - hosts:
+    - pics.dodges.it
+    secretName: photoprism-le-secret
+  rules:
+  - host: pics.dodges.it
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: photoprism
+            port:
+              number: 2342
+  ingressClassName: nginx