feat(proxy): 代理相关内容调整

这个提交包含在:
2024-12-02 18:29:49 +08:00 未验证
父节点 9727576e91
当前提交 a52bf93eb1
修改 2 个文件,包含 0 行新增69 行删除
-60
查看文件
@@ -1,60 +0,0 @@
http:
routers:
router:
entryPoints:
- websecure
rule: "Host(`router.dev.cm`)"
service: "router@file"
middlewares:
- web-base
vm:
entryPoints:
- websecure
rule: "Host(`vm.dev.cm`)"
service: "vm@file"
middlewares:
- web-base
nas:
entryPoints:
- websecure
rule: "Host(`nas.dev.cm`)"
service: "nas@file"
middlewares:
- web-base
download:
entryPoints:
- websecure
rule: "Host(`download.dev.cm`)"
service: "download@file"
middlewares:
- traefik-forward-auth
- web-base
downloadRpc:
entryPoints:
- websecure
rule: "Host(`download.dev.cm`) && PathPrefix(`/jsonrpc`)"
service: "downloadRpc@file"
middlewares:
- web-base
services:
router:
loadBalancer:
servers:
- url: "https://192.168.21.1/"
vm:
loadBalancer:
servers:
- url: "https://192.168.21.2:8006/"
nas:
loadBalancer:
servers:
- url: "http://192.168.21.3/"
download:
loadBalancer:
servers:
- url: "http://192.168.21.3:6880/"
downloadRpc:
loadBalancer:
servers:
- url: "http://192.168.21.3:6800/"
-69
查看文件
@@ -1,69 +0,0 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: xray
namespace: infra-net
spec:
replicas: 1
selector:
matchLabels:
app: xray
template:
metadata:
labels:
app: xray
spec:
volumes:
- name: config
secret:
secretName: config-secret
containers:
- name: xray
image: ghcr.io/xtls/xray-core:latest
ports:
- name: port
containerPort: 443
protocol: TCP
resources: {}
volumeMounts:
- name: config
readOnly: true
mountPath: /etc/xray/config.json
subPath: config.json
----------------------------
kind: Service
apiVersion: v1
metadata:
name: xray
namespace: vpn
spec:
ports:
- protocol: TCP
port: 443
targetPort: 443
selector:
app: xray
----------------------------
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: xray
namespace: infra-net
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/ssl-passthrough: 'true'
spec:
ingressClassName: nginx
rules:
- host: *.node.dev.cm
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: xray
port:
number: 443