-
I am trying to run an athens instance behind a reverse proxy on port 80 via PathPrefix. I have created a minimal version: '3.3' services:
traefik:
container_name: traefik
image: traefik:v2.2
command:
- "--api.insecure=true"
- "--providers.docker"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
athens:
container_name: athens
image: gomods/athens:v0.10.0
labels:
- "traefik.enable=true"
- "traefik.http.routers.athens.entrypoints=web"
- "traefik.http.routers.athens.rule=Host(`localhost`) &&
PathPrefix(`/athens`)"
environment:
- ATHENS_PATH_PREFIX=athens
ports:
- 3001:3000 Unfortunately I always get a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
whoa @ftrier I never saw this in here. we don't check GitHub discussions, but clearly we should. are you getting a 404 when you |
Beta Was this translation helpful? Give feedback.
-
I also had this problem. It seems a beginning slash is required. REPRODUCE FAILURE:
~ $ curl http://go-proxy:3000/go/readyz
404 page not found SUCCESS:
~ $ curl -v http://go-proxy:3000/go/readyz
...
< HTTP/1.1 200 OK
... |
Beta Was this translation helpful? Give feedback.
I also had this problem. It seems a beginning slash is required.
REPRODUCE FAILURE:
~ $ curl http://go-proxy:3000/go/readyz 404 page not found
SUCCESS: