Redirect .env file to your Curriculum Vitae - simplest way to Ingress redirect via annotations in Kubernetes
Redirect /.env file to your curriculum vitae via nginx.ingress.kubernetes.io/temporal-redirect
annotation
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
nginx.ingress.kubernetes.io/temporal-redirect: https://exploit.cz/content/images/2021/CV-KOLBL-PHP-2021-EN.pdf
name: exploit-cz-cv-redirects
spec:
rules:
- host: exploit.cz
http:
paths:
- backend:
serviceName: http-svc
servicePort: 80
path: /.env
- backend:
serviceName: http-svc
servicePort: 80
path: /cv.pdf
tls:
- hosts:
- www.exploit.cz
- exploit.cz
secretName: exploit-cz-tls