SSL on other port as :443

Hi,

i use a entryPoint for specific port

[entryPoints.arangodb]
    address = ":8529"

i use traefik with LetsEncrypt. If i go to https://mysiteurl;8529 is connection closed, on http is it running.

How i get SSL on a site with specific port?

Hello,

In Traefik v2 the TLS definition is on the router not on the entry point.

https://docs.traefik.io/v2.1/routing/routers/#tls

here my docker-compose

version: '3'
networks:
  traefik-proxy:
    external: true

volumes:
  arangodbdev:

services:
  arangodb:
    image: arangodb:latest
    volumes:
      - /srv/arangodb:/data
    ports:
      - 8529:8529
    environment:
      - ARANGO_ROOT_PASSWORD=xxxxxx!?
    networks:
      - traefik-proxy
      - default
    expose:
      - "3000"
    labels:
      - traefik.enable=true
      - traefik.http.routers.arangodb.entrypoints=arangodb
      - traefik.http.routers.arangodb.rule=Host(`db.dev.xxx.xx`)
      - traefik.http.routers.arangodb.tls=true
      - traefik.http.routers.arangodb.tls.certresolver=letsencrypt
      - traefik.http.services.arangodb.loadbalancer.server.port=8529
      - traefik.docker.network=traefik-proxy
    restart: always

HI Fruchtgummi

Did you solve the problem? I have the same issue now, and cant find a solution.

I think basic Traefik LetsEncrypt needs port 80 for domain verification, see docs.

I got it working :smiley:

The solution is:

  • Create an entrypoint on port 5000 give it a name.
  • remember to forward port 5000 to traefik :frowning:
  • Use the config Fruchtgummi used. which is the std config...