fix: temporarily redirect nik4nao.com to me.nik4nao.com
Some checks failed
validate / lint (push) Failing after 1s
Some checks failed
validate / lint (push) Failing after 1s
Job hunt is over; point the portfolio domain at the personal site via a 302 Traefik RedirectRegex middleware instead of the rate-limit middleware. Portfolio Deployment/Service/Certificate are untouched so this is easy to revert. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
2c26c227ee
commit
f76b1e6f13
@ -1,6 +1,9 @@
|
||||
# Apply: kubectl apply -f manifests/portfolio/portfolio.yaml
|
||||
# Delete: kubectl delete -f manifests/portfolio/portfolio.yaml
|
||||
# Description: Portfolio website deployment, service, TLS certificate, and public IngressRoute at nik4nao.com.
|
||||
# TEMPORARY: nik4nao.com is 302-redirecting to me.nik4nao.com (see portfolio-redirect-to-me
|
||||
# middleware below). To restore normal routing, change the IngressRoute's middlewares back
|
||||
# to portfolio-ratelimit and delete the portfolio-redirect-to-me Middleware.
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
@ -75,7 +78,7 @@ spec:
|
||||
- match: Host(`nik4nao.com`)
|
||||
kind: Rule
|
||||
middlewares:
|
||||
- name: portfolio-ratelimit
|
||||
- name: portfolio-redirect-to-me
|
||||
services:
|
||||
- name: portfolio
|
||||
port: 80
|
||||
@ -94,4 +97,15 @@ spec:
|
||||
period: 1m
|
||||
sourceCriterion:
|
||||
ipStrategy:
|
||||
depth: 1
|
||||
depth: 1
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: portfolio-redirect-to-me
|
||||
namespace: portfolio
|
||||
spec:
|
||||
redirectRegex:
|
||||
regex: ^https://nik4nao\.com/(.*)
|
||||
replacement: https://me.nik4nao.com/${1}
|
||||
permanent: false
|
||||
Loading…
x
Reference in New Issue
Block a user