diff --git a/configuration.html b/configuration.html index d3946b383..45a2fbe88 100644 --- a/configuration.html +++ b/configuration.html @@ -29,11 +29,12 @@
-
+ +
Backends
{{range $keyBackends, $valueBackends := .Configuration.Backends}} -
+
{{$keyBackends}}
@@ -52,7 +53,7 @@ -
+
Routes
{{range $keyRoutes, $valueRoutes := .Configuration.Routes}} @@ -60,7 +61,10 @@
{{$keyRoutes}}
{{range $backend := $valueRoutes.Backends}} - + + {{end}}
@@ -81,7 +85,9 @@ {{end}} + + \ No newline at end of file diff --git a/docker.tmpl b/docker.tmpl index f81a0cfd1..ca190b93b 100644 --- a/docker.tmpl +++ b/docker.tmpl @@ -1,16 +1,16 @@ [backends]{{range .Containers}} - [backends.{{.Config.Hostname}}] - [backends.{{.Config.Hostname}}.servers.{{.Config.Hostname}}] + [backends.backend-{{.Config.Hostname}}] + [backends.backend-{{.Config.Hostname}}.servers.server-{{.Config.Hostname}}] url = "http://{{.NetworkSettings.IPAddress}}:80" {{end}} [routes]{{range .Containers}} - [routes.{{.Config.Hostname}}] - backends = ["{{.Config.Hostname}}"] - [routes.{{.Config.Hostname}}.rules.{{.Config.Hostname}}-hostname] + [routes.route-{{.Config.Hostname}}] + backends = ["backend-{{.Config.Hostname}}"] + [routes.route-{{.Config.Hostname}}.rules.rule-{{.Config.Hostname}}-hostname] category = "Host" value = "{{.Config.Hostname}}.zenika.fr" - [routes.{{.Config.Hostname}}.rules.{{.Config.Hostname}}-name] + [routes.route-{{.Config.Hostname}}.rules.rule-{{.Config.Hostname}}-name] category = "Host" value = "{{.Name | replace "/"}}.zenika.fr" {{end}} diff --git a/tortuous.toml b/tortuous.toml index 705b2ec4f..f19999229 100644 --- a/tortuous.toml +++ b/tortuous.toml @@ -1,13 +1,13 @@ -#[docker] -#endpoint = "unix:///var/run/docker.sock" -#watch = true +[docker] +endpoint = "unix:///var/run/docker.sock" +watch = true [web] address = ":8010" -[file] -filename = "tortuous.toml" -watch = true +#[file] +#filename = "tortuous.toml" +#watch = true [backends] [backends.backend1]