Closed steenbag closed 8 years ago
Thanks for question, @steenbag. There is no easy way to run it on a non-standard port currently. However, if you can use nginx to reverse proxy both your web app and registry ui and run registry ui on non-standard context path:
# web registry context path
# empty string for root context, /app to make web registry accessible on http://host/app
context_path: ''
Will this config option be able to solve your issue?
I wasn't able to use the context path since the other web app (jenkins) was listening on all port 443 requests. What I ended up doing (which seems to be successful so far) is move the nginx proxy in front of both apps. I also migrated my jenkins install to a docker container as well, so now I have one NGINX container acting as an SSL terminator, and the reverse proxy to the individual containers as appropriate based on the domain name.
Thanks, Andrew
Hi, I've been trying to use the behind NGINX example, and I have everything more or less up and running. I am however running into an issue, I have another web server running on my VPS, which consumes ports 443 and 80. As such, I cannot run the NGINX example on the standard ports. Instead I'm using 8000, which forwards to 443 on the nginx container.
I also changed the port for the registry it's self so that I could expose port 5000 via nginx and get an https proxy for remote connections.
The registry works fine, I can login, push and pull. Everything works in the UI (i.e. I can login, manage users, etc) except that whenever the app redirects, it loses the port number in the URL. As a result, I keep getting thrown back into my other web app that is running on ports 80/443.
For example, when I come to the app without a session (https://registry.mydomain.com:8000) it detects I have no session and throws me to https://registry.mydomain.com/login/auth (which gives me a 404 from my other app). I have to manually add :8000 back in to get to the login page. Several other pages in the app have the same result (user creation, user update, etc).
Is there some configuration change I can make to fix the redirects? I've attached my configuration below:
Compose file:
conf/nginf/default.conf:
conf/registry/config.yml:
conf/registry-web/config.yml: