diff --git a/.socialgouv/redirect.yaml b/.socialgouv/redirect.yaml new file mode 100644 index 00000000..296d330d --- /dev/null +++ b/.socialgouv/redirect.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/permanent-redirect: https://monpsy.sante.gouv.fr$request_uri + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + labels: + app.kubernetes.io/component: redirect + app.kubernetes.io/name: www + name: monpsy-redirect + namespace: monpsy +spec: + rules: + - host: www.monpsy.sante.gouv.fr + tls: + - hosts: + - www.monpsy.sante.gouv.fr + secretName: monpsy-redirect diff --git a/README.md b/README.md index 4a5e3f83..826aef58 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,3 @@ https://monpsy.sante.gouv.fr yarn build npm run dev ``` -