setting up configuration for proxying

This commit is contained in:
2025-03-06 19:04:56 -07:00
parent 2e0f08f803
commit 93c219db88
4 changed files with 51 additions and 2 deletions

View File

@@ -31,8 +31,8 @@ jobs:
pwd
# echo "$CLOUDFLARE_CONFIG" > /data/cloudflare/cloudflare.ini
cd home-server
docker pull nextcloud:production
docker compose pull
docker pull -q nextcloud:production
docker compose pull -q
docker compose build
docker compose up -d
# docker restart reverse-proxy

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/version: 1.12.0
name: ingress-nginx-controller
namespace: ingress-nginx
data:
allow-snippet-annotations: "true"
annotations-risk-level: Critical

View File

@@ -0,0 +1,27 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jellyfin-proxy-ingress
namespace: projects
spec:
ingressClassName: nginx
rules:
- host: jellyfin.alexmickelson.guru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: jellyfin-service
port:
number: 8096
---
apiVersion: v1
kind: Service
metadata:
name: jellyfin-service
namespace: projects
spec:
type: ExternalName
externalName: 100.122.128.107

View File

@@ -30,3 +30,11 @@ Currently clouflare domains cannot be CNAME'd to tailscale domains:
- <https://github.com/tailscale/tailscale/issues/7650>
- related, different IP addresses: <https://tailscale.com/blog/choose-your-ip#natural-solutions>
## Kubernetes ingress controller
```
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/baremetal/deploy.yaml
``
I'll need to create a custom service to bring in port 80 and 443 later