You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a server and I installed Harbor 2.12.2 using docker-compose and looks fine. I can access using localhost:PORT and server_ip:PORT.
But I want to access Harbor using a subpath like mycompany.com/registry/harbor. I set up harbor.yml to use my DNS and relative URLs, and I set up a reverse proxy nginx below.
I can access mycompany.com/registry/harbor but I can't login, the endpoint returns 404. But, if I access mycompany.com.br:PORT I can login.
Only the UI/portal will work on a path, the registry only works on domain.
The way it works for the registry part, has nothing to do with Harbor.
if you build the portal with: NG_BUILD_ARGS: '--prod --base-href /admin-console/ --deploy-url /admin-console/'
Harbor Portal UI
The Angular-based portal code is itself unmodified. We performed changes to the Nginx configuration that serves the static HTML with the goal of allowing the application to work on the path different to domain.tld/. The desired path is now set to domain.tld/admin-console/.
Nginx Config Changes
Add rewrite rule, so that the application is present on /admin-console/
Set the base path in the index.html to /admin-console/
Hi,
I have a server and I installed Harbor 2.12.2 using docker-compose and looks fine. I can access using
localhost:PORT
andserver_ip:PORT
.But I want to access Harbor using a subpath like
mycompany.com/registry/harbor
. I set up harbor.yml to use my DNS and relative URLs, and I set up a reverse proxy nginx below.I can access
mycompany.com/registry/harbor
but I can't login, the endpoint returns 404. But, if I access mycompany.com.br:PORT I can login.The text was updated successfully, but these errors were encountered: