This commit is contained in:
2025-03-17 20:16:28 -06:00
parent 2d0a11aca5
commit d5473a3eb1
2 changed files with 34 additions and 1 deletions

View File

@@ -9,5 +9,5 @@ services:
ports: ports:
- 3001:3000 - 3001:3000
environment: environment:
- HOMEPAGE_ALLOWED_HOSTS=server.alexmickelson.guru:3001 - HOMEPAGE_ALLOWED_HOSTS=server.alexmickelson.guru:3001,home.alexmickelson.guru
restart: unless-stopped restart: unless-stopped

View File

@@ -0,0 +1,33 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: homepage-ingress
namespace: projects
annotations:
cert-manager.io/cluster-issuer: cloudflare-issuer
spec:
ingressClassName: nginx
tls:
- hosts:
- home.alexmickelson.guru
secretName: home-tls-cert
rules:
- host: home.alexmickelson.guru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: homepage-service
port:
number: 3001
---
apiVersion: v1
kind: Service
metadata:
name: homepage-service
namespace: projects
spec:
type: ExternalName
externalName: 100.122.128.107