Refactor Traefik router middleware for opnsense service in swarm/services.yml

This commit is contained in:
2024-09-21 19:04:23 +08:00
parent 04a0a70368
commit 488c614ae7
+26 -12
View File
@@ -9,18 +9,18 @@ http:
address: "http://authentik-server:9000/outpost.goauthentik.io/auth/traefik" address: "http://authentik-server:9000/outpost.goauthentik.io/auth/traefik"
trustForwardHeader: true trustForwardHeader: true
authResponseHeaders: authResponseHeaders:
- X-authentik-username - X-authentik-username
- X-authentik-groups - X-authentik-groups
- X-authentik-email - X-authentik-email
- X-authentik-name - X-authentik-name
- X-authentik-uid - X-authentik-uid
- X-authentik-jwt - X-authentik-jwt
- X-authentik-meta-jwks - X-authentik-meta-jwks
- X-authentik-meta-outpost - X-authentik-meta-outpost
- X-authentik-meta-provider - X-authentik-meta-provider
- X-authentik-meta-app - X-authentik-meta-app
- X-authentik-meta-version - X-authentik-meta-version
- authorization - authorization
routers: routers:
local-traefik-public-https: local-traefik-public-https:
@@ -74,6 +74,15 @@ http:
tls: {} tls: {}
service: proxmox01@file service: proxmox01@file
opnsense:
entryPoints:
- https
rule: Host(`opn.furyhawk.lol`)
middlewares:
- admin-auth@swarm
tls: {}
service: opnsense@file
services: services:
coco_desktop: coco_desktop:
loadBalancer: loadBalancer:
@@ -94,6 +103,11 @@ http:
servers: servers:
- url: "https://192.168.50.201:8006" - url: "https://192.168.50.201:8006"
opnsense:
loadBalancer:
servers:
- url: "http://192.168.50.170"
tcp: tcp:
routers: routers:
spice00: spice00: