Commit a8e148dc authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add ingresses for public domains

parent 9cafaa72
### Ingresses
These are ingresses used to re-direct additional domains and paths to specific services. These are
only used for productive services as stage and test systems use the default domains.
These are generally meant to be used by the actual users of memobase.
* `iiif-ingress-public`: Ingress for additional public IIIF endpoint (https://iiif.memobase.ch)
* `media-ingress-public`: Ingress for additional public media server endpoint (https://media.memobase.ch)
* `oai-ingress-public`: Ingress for additional public OAI endpoint (https://oai.memobase.ch)
\ No newline at end of file
#!/usr/bin/env bash
kubectl apply -f .
\ No newline at end of file
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
namespace: memobase
name: api-media-server-iiif.memobase.ch
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /memo/$1/manifest/v$2
spec:
tls:
- hosts:
- iiif.memobase.ch
secretName: api.media-server.iiif.memobase.ch-tls
rules:
- host: iiif.memobase.ch
http:
paths:
- path: /iiif/([^/]+)/manifest/v(.)
backend:
serviceName: api-media-server-prod-service
servicePort: 8081
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
namespace: memobase
name: api-media-server-media-public-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
tls:
- hosts:
- media.memobase.ch
secretName: api.media-server.media.memobase.ch-tls
rules:
- host: media.memobase.ch
http:
paths:
- path: /
backend:
serviceName: api-media-server-prod-service
servicePort: 8081
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
namespace: memobase
name: oai-ingress-oai.memobase.ch
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
tls:
- hosts:
- oai.memobase.ch
secretName: api.memobase.oai.memobase.ch-tls
rules:
- host: oai.memobase.ch
http:
paths:
- path: /
backend:
serviceName: oai-service
servicePort: 9000
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment