traefik / whoami

Tiny Go server that prints os information and HTTP request to output
https://traefik.io
Apache License 2.0
1.04k stars 223 forks source link

Base path setting #85

Closed Con1924 closed 10 months ago

Con1924 commented 10 months ago

Is it possible to configure the base url? Ideally from docker labels or environment variables? This is to use it with Traefik PathPrefix for subdomain.domain.com/whoami

ldez commented 10 months ago

Hello,

You can define the routing inside your Traefik routes by using PathPrefix with StripPrefix