Migrate the Nuxt 3 + Vue 3 SSR frontend application for basicstack.org to our self-hosted Forgejo instance. This repository will serve as the source for all future development and deployment of the basicstack.org website. The application includes: - Nuxt 3 + Vue 3 SSR setup - Directus CMS integration - Tailwind CSS styling - Kubernetes deployment manifests - Docker containerization Co-Authored-By: Paperclip <noreply@paperclip.ing>
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: basicstack-web
|
|
namespace: basicstack-web
|
|
annotations:
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
traefik.ingress.kubernetes.io/router.middlewares: basicstack-web-redirect@kubernetescrd
|
|
spec:
|
|
ingressClassName: traefik
|
|
tls:
|
|
- hosts:
|
|
- basicstack.org
|
|
- www.basicstack.org
|
|
secretName: basicstack-org-tls
|
|
rules:
|
|
- host: basicstack.org
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: basicstack-web
|
|
port:
|
|
number: 80
|
|
- host: www.basicstack.org
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: basicstack-web
|
|
port:
|
|
number: 80
|
|
---
|
|
# Redirect www to non-www
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: redirect
|
|
namespace: basicstack-web
|
|
spec:
|
|
redirectRegex:
|
|
regex: "^https://www\\.basicstack\\.org/(.*)"
|
|
replacement: "https://basicstack.org/${1}"
|
|
permanent: true
|