Skip to content

Commit

Permalink
Ability to use SSL in traefik (closes #161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Savchuk authored and Louis committed Sep 9, 2018
1 parent 5ce1e3f commit d0c33a8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
4 changes: 3 additions & 1 deletion compose/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ services:
image: traefik
ports:
- "80:80"
- "443:443"
volumes:
- ../config/traefik.toml:/etc/traefik/traefik.toml:ro
- /var/run/docker.sock:/var/run/docker.sock
- ../config/traefik.toml:/etc/traefik/traefik.toml:ro
- ../config/acme.json:/acme.json
networks:
default:
aliases:
Expand Down
24 changes: 20 additions & 4 deletions config/traefik.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
logLevel = "INFO"
defaultEntryPoints = ["https","http"]

[api]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]

[retry]

[docker]
domain = "local"
endpoint = "unix:///var/run/docker.sock"
domain = "wb.local"
watch = true
exposedByDefault = false
usebindportip = true
exposedbydefault = false

[acme]
email = "[email protected]"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
[acme.httpChallenge]
entryPoint = "http"

0 comments on commit d0c33a8

Please sign in to comment.