-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run as subfolder on proxy #215
Comments
You didnt wrote what reverse proxy are you using, so I will show you mine with nginx. This should answer your question in principle (but you give us no context at all, so there is no way to direct answer). I hope it helps you anyway: Nginx is used as reverse proxy to docker network with proxy_pass:
version: "3.8"
services:
web:
build: ./nginx # just add nginx conf
restart: always
(... and some SSL settings ...)
volumes:
-./nginx/log/kwk:/var/log/nginx/kwk
ports:
- 80:80
- 443:443
links:
- kwk
kwk:
image: konradkleine/docker-registry-frontend:v2
environment:
ENV_DOCKER_REGISTRY_HOST: registry
ENV_DOCKER_REGISTRY_PORT: 5000
# SSL is from nginx.
# BUT DO NOT TOUCH 'ENV_USE_SSL=no' because it start some ssl initialization and apache will break without mounted .crt & .key
links:
- registry
registry:
image: library/registry:2.6
environment:
REGISTRY_HTTP_SECRET: ${SECRET_KEY_BASE}
volumes:
- ./registry/storage:/var/lib/registry
ports:
- 5000:5000 Now Next problem:But everything is broken! Every link is relative from root! We can either take Another solution is to modify response from server via nginx
You can check if nginx is compiled with And thats all. What next?
|
Ok, still does not work becouse there are absolute paths in code:
etc... see #50 :-/ |
Hi!
I have a large server with some services. And there is a proxy server with directories for them
URL is:
http://largeserver/portainer
http://largeserver/jenkins
http://largeserver/gitlab
And I want run docker-registry-frontend in subfolder http://largeserver/registry, but it is impossible :(
Need config for use subfolder in links
The text was updated successfully, but these errors were encountered: