traefik certresolver #63
-
Hi, ...
blogstatic:
image: joseluisq/static-web-server:2
container_name: "blogstatic"
restart: always
environment:
- SERVER_PORT=8787
- SERVER_ROOT=/public
- SERVER_DIRECTORY_LISTING=true
- SERVER_HTTP2_TLS=true
ports:
- "8787:443"
volumes:
- ./blog:/public
labels:
- "traefik.enable=true"
- "traefik.http.routers.blogstatic.rule=Host(`mysite.com`)"
- "traefik.http.routers.blogstatic.entrypoints=websecure"
- "traefik.http.routers.blogstatic.tls.certresolver=mysiteschallenge" Is it possible? |
Beta Was this translation helpful? Give feedback.
Answered by
joseluisq
Jul 2, 2024
Replies: 1 comment 1 reply
-
Hi, If you want to use HTTP/2 + TLS from the container.
Otherwise if you just want to proxy the HTTP/1 server and let Traefik to manage TLS for you
Tips:
BTW I now that the Traefik example in the SWS docs is for Traefik v1.x but I will try to update it as soon as I can. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is now a simple example using the latest Traefik 3. See https://static-web-server.net/features/docker/#docker-compose