proxmox connected and compose wg works, modified whoami for a private

access path
This commit is contained in:
venus
2026-06-25 23:55:54 -05:00
parent 7401a5fabb
commit bb60951020
3 changed files with 10 additions and 17 deletions

View File

@@ -64,14 +64,17 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.services.wg-easy-svc.loadbalancer.server.port=51821" - "traefik.http.services.wg-easy-svc.loadbalancer.server.port=51821"
# Configuration for public access with auth middleware
- "traefik.http.routers.wg-easy.rule=Host(`wg.riverrooks.dev`)" - "traefik.http.routers.wg-easy.rule=Host(`wg.riverrooks.dev`)"
- "traefik.http.routers.wg-easy.entrypoints=websecure" - "traefik.http.routers.wg-easy.entrypoints=websecure"
- "traefik.http.routers.wg-easy.tls.certresolver=basic" - "traefik.http.routers.wg-easy.tls.certresolver=basic"
- "traefik.http.routers.wg-easy.middlewares=auth" - "traefik.http.routers.wg-easy.middlewares=auth"
- "traefik.http.routers.wg-easy.service=wg-easy-svc" - "traefik.http.routers.wg-easy.service=wg-easy-svc"
# configured for private access with no auth
- "traefik.http.routers.wg-easy-private.rule=Host(`wg.dfnk`)" - "traefik.http.routers.wg-easy-private.rule=Host(`wg.dfnk`)"
- "traefik.http.routers.wg-easy-private.entrypoints=websecure" - "traefik.http.routers.wg-easy-private.entrypoints=websecure"
# No certresolver here, will mess with browsers
- "traefik.http.routers.wg-easy-private.tls=true" - "traefik.http.routers.wg-easy-private.tls=true"
- "traefik.http.routers.wg-easy-private.service=wg-easy-svc" - "traefik.http.routers.wg-easy-private.service=wg-easy-svc"

View File

@@ -3,7 +3,5 @@ server=1.1.1.1
server=8.8.8.8 server=8.8.8.8
# Set custom addresses inside the container # Set custom addresses inside the container
address=/sol.dfnk/172.21.0.10 address=/.dfnk/172.21.0.10
address=/who.dfnk/172.21.0.10 address=/proxmox.dfnk/10.8.0.4
address=/wg.dfnk/172.21.0.10
address=/traefik.dfnk/172.21.0.10

View File

@@ -9,20 +9,12 @@ services:
- "traefik.http.routers.whoami.rule=Host(`whoami.riverrooks.dev`) || Host(`whoami.riverrooks.art`)" - "traefik.http.routers.whoami.rule=Host(`whoami.riverrooks.dev`) || Host(`whoami.riverrooks.art`)"
- "traefik.http.routers.whoami.entrypoints=websecure" - "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls.certresolver=basic" - "traefik.http.routers.whoami.tls.certresolver=basic"
networks:
- traefik
whoami-defenk:
image: traefik/whoami
container_name: whoami-vpn
restart: unless-stopped
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.whoami.rule=Host(`10.8.0.1`)"
# - "traefik.http.routers.whoami.entrypoints=websecure"
# # - "traefik.http.routers.whoami.tls.certresolver=basic"
networks:
- traefik
- "traefik.http.routers.whoami-private.rule=Host(`whoami.dfnk`)"
- "traefik.http.routers.whoami-private.entrypoints=websecure"
- "traefik.http.routers.whoami-private.tls=true"
networks:
- traefik
networks: networks:
traefik: traefik:
external: true external: true