Skip to content
Discussion options

You must be logged in to vote

Hi @DerpBoy77! I'm Dosu and I'm helping the Dokploy team.

The 10.0.2.1 you're seeing is because of how Docker Swarm routes ingress traffic through docker_gwbridge before it reaches Traefik, and the default Dokploy-generated traefik.yml does not include any forwardedHeaders configuration on the entrypoints [1].

To get real client IPs, edit /etc/dokploy/traefik/traefik.yml and add forwardedHeaders to both entrypoints:

entryPoints:
  web:
    address: ':80'
    forwardedHeaders:
      trustedIPs:
        - "10.0.0.0/8"
        - "172.16.0.0/12"
        - "192.168.0.0/16"
  websecure:
    address: ':443'
    http3:
      advertisedPort: 443
    http:
      tls:
        certResolver: letsencrypt

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DerpBoy77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant