Giter Club home page Giter Club logo

Comments (3)

jspdown avatar jspdown commented on July 20, 2024

Hello @aspnetde 👋
I've tried reproducing the issue but everything seems to work as expected.

Here is my setup:

./docker-compose.yaml:

version: '3.8'

services:
  traefik:
    image: traefik:v2.10
    restart: always
    command:
      - --api.insecure=true
      - --log.level=debug
      - --providers.docker=true
      - --providers.docker.exposedbydefault=false
      - --providers.file.directory=/config
      - --providers.file.watch=true
      - --entrypoints.websecure.address=:443
    ports:
      - 443:443
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./config:/config

config/routers.yaml

tcp:
  routers:
    external-service-router:
      rule: "HostSNI(`*`)"
      service: "external-service"
      entryPoints: ["websecure"]
  services:
    external-service:
      loadBalancer:
        servers:
          - address: "<IP_A>:443"

The IP I used are those of public server such as traefik.io.
When I change the IP address to something else, I see the right log:

Creating TCP server 0 at :443" serverName=0 entryPointName=websecure routerName=external-service-router@file serviceName=external-service

I call the service by doing a curl as follow:

curl https://localhost -H "Host: traefik.io" -vk

Could you provide a self contained reproducible test case? Or point me where my setup differs?

from traefik.

aspnetde avatar aspnetde commented on July 20, 2024

Unfortunately, I don't have a development machine available right now. Your configuration looks quite similar to mine as posted above, but it's not exactly the same. Maybe disabling the debug mode would have the (not so) desired effect? Anyway, I can try to reproduce it once again in a couple of days.

from traefik.

aspnetde avatar aspnetde commented on July 20, 2024

@jspdown You are right, I can reproduce the correct behavior now, too. Even when testing it with my config, without using the debug mode. I have no idea what went wrong back initially.

from traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.