Skip to content

Instantly share code, notes, and snippets.

@liemle3893
Created April 1, 2020 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liemle3893/0c8e3cc8dffde3255e72863e90838f1a to your computer and use it in GitHub Desktop.
Save liemle3893/0c8e3cc8dffde3255e72863e90838f1a to your computer and use it in GitHub Desktop.
service {
name = "go-demo"
port = "http"
address_mode = "driver"
tags = [
"traefik.enable=true",
"traefik.http.middlewares.strip-go-demo.stripprefix.prefixes=/go-demo",
"traefik.http.routers.go-demo.entrypoints=http",
"traefik.http.routers.go-demo.rule=PathPrefix(`/go-demo`)",
"traefik.http.routers.go-demo.middlewares=strip-go-demo"
]
check {
name = "http"
type = "http"
port = "http"
path = "/healthz"
timeout = "2s"
interval = "5s"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment