fix: temporarily redirect nik4nao.com to me.nik4nao.com
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:
Nik Afiq 2026-09-18 11:28:30 +09:00
parent 2c26c227ee
commit f76b1e6f13

View File

@ -1,6 +1,9 @@
# Apply: kubectl apply -f manifests/portfolio/portfolio.yaml # Apply: kubectl apply -f manifests/portfolio/portfolio.yaml
# Delete: kubectl delete -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. # 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 apiVersion: v1
kind: Namespace kind: Namespace
@ -75,7 +78,7 @@ spec:
- match: Host(`nik4nao.com`) - match: Host(`nik4nao.com`)
kind: Rule kind: Rule
middlewares: middlewares:
- name: portfolio-ratelimit - name: portfolio-redirect-to-me
services: services:
- name: portfolio - name: portfolio
port: 80 port: 80
@ -94,4 +97,15 @@ spec:
period: 1m period: 1m
sourceCriterion: sourceCriterion:
ipStrategy: 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