From f76b1e6f13d01e4188618014a1692417e9c357ed Mon Sep 17 00:00:00 2001 From: Nik Afiq Date: Fri, 18 Sep 2026 11:28:30 +0900 Subject: [PATCH] fix: temporarily redirect nik4nao.com to me.nik4nao.com 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 --- manifests/portfolio/portfolio.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/manifests/portfolio/portfolio.yaml b/manifests/portfolio/portfolio.yaml index 15c7514..00f7879 100644 --- a/manifests/portfolio/portfolio.yaml +++ b/manifests/portfolio/portfolio.yaml @@ -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 \ No newline at end of file + 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 \ No newline at end of file