Skip to content

Commit

Permalink
Fix broken traefik proxy (fixes #176)
Browse files Browse the repository at this point in the history
  • Loading branch information
shal authored and Louis committed Sep 12, 2018
1 parent d0c33a8 commit 4a05a5b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config/acme.json
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ dependencies:
$(COMPOSE) up -d vault db phpmyadmin redis rabbitmq mailcatcher ranger coinhub
$(COMPOSE) run --rm vault secrets enable totp || true

prepare: dependencies daemons cryptonodes
proxy:
@touch config/acme.json && chmod 0600 config/acme.json

prepare: proxy dependencies daemons cryptonodes

setup-apps: build
$(COMPOSE) run --rm peatio bash -c "./bin/link_config && bundle exec rake db:create db:migrate db:seed"
Expand Down
6 changes: 5 additions & 1 deletion config/traefik.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
logLevel = "INFO"
defaultEntryPoints = ["https","http"]

[api]

[entryPoints]
[entryPoints.http]
address = ":80"
Expand All @@ -12,7 +14,7 @@ defaultEntryPoints = ["https","http"]

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

Expand All @@ -21,5 +23,7 @@ email = "[email protected]"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
usebindportip = true

[acme.httpChallenge]
entryPoint = "http"

0 comments on commit 4a05a5b

Please sign in to comment.