View Source

Moved to [https://github.com/Cantara/maven-infrastructure/tree/master/nexus]

-----

* *TODO* Evaluate how to restart nexus at boot.
** [https://docs.docker.com/articles/host_integration/]

* [Persistent volumes with Docker - Data-only container pattern|http://www.tech-d.net/2013/12/16/persistent-volumes-with-docker-container-as-volume-pattern/]


h4. Apache reverse proxy

{code}
sudo a2enmod headers
{code}

{code}
<VirtualHost *:80>
ServerName someIpHere
Redirect / https://someIpHere/
</VirtualHost>

<VirtualHost *:443>
ServerName someIpHere
RequestHeader set X-Forwarded-Proto "https"

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/some.no.crt
SSLCertificateKeyFile /etc/apache2/ssl/some.no.key


ProxyPass /jenkins http://localhost:8080/jenkins nocanon
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests Off
AllowEncodedSlashes NoDecode
#Doc: https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache

#books.sonatype.com/nexus-book/reference/install-sect-proxy.html
ProxyPass /nexus/ http://localhost:8081/
ProxyPassReverse /nexus/ http://localhost:8081/
ProxyPassReverseCookiePath / /nexus
</VirtualHost>
{code}