xetus-oss / docker-archiva

A docker image for Apache Archiva
Apache License 2.0
55 stars 33 forks source link

How to change archiva path? #7

Closed herrmannpchw closed 6 years ago

herrmannpchw commented 6 years ago

Hello,

I'm trying to change the archiva path to http://X.X.X.X/archiva but had no success.

Is it possible? How can I change?

Thank you.

tkent commented 6 years ago

@herrmannpchw

That's not a configuration option for this image. Out of question, why do you want to make that change?

herrmannpchw commented 6 years ago

I have others services on the same machine with nginx...

Thanks!

tkent commented 6 years ago

@herrmannpchw

I see. This is a common scenario with container services and a proxy (like nginx) is often used so that everything works.

Here are two simple ways to handle the situation:

  1. Configure ngnix to rewrite the requests it receives for "/archiva/XXX" to "/XXX" and forward them to the archiva container's IP. Assuming ngnix is also running in a container, you can use a docker network to make this configuration very simple.

  2. Assign an additional IP to the host and bind the archiva container to that new IP. In this case, traffic for Archiva won't go to ngnix.

Good luck!