hubspotdevops / puppet-nexus

Puppet module for Sonatype Nexus
MIT License
24 stars 93 forks source link

Concerns about readme and https #19

Open peterlynch opened 10 years ago

peterlynch commented 10 years ago

https://github.com/hubspotdevops/puppet-nexus/blame/master/README.md#L35

Readme contains this paragraph:

Nexus does not adequately support HTTP and HTTPS simultaneously.  Below forces all connections to HTTPS.  Be sure to login after the app is up and head to Administration -> Server.  Change the base URL to "https" and check "Force Base URL". 

In Nexus 2.8x, you will hopefully find this statement not true. Provided you have a keystore jetty can use and ./conf/jetty-https.xml is configured to use it, then:

  1. Edit nexus.properties, add application-port-ssl=8443
  2. Edit bin/jsw/conf/wrapper.conf, add wrapper.app.parameter.3=./conf/jetty-https.xml

Start Nexus. http on port 8081/ https on port 8443

If you want to always force redirection from http to https, then additionally

  1. Edit bin/jsw/conf/wrapper.conf, add wrapper.app.parameter.4=./conf/jetty-http-redirect-to-https.xml
tmclaugh commented 9 years ago

Didn't see this here until now... I'll need to add this setup via Puppet in another release.

wyardley commented 7 years ago

btw, you may also want to update the pointer to jfryman/puppet-nginx to https://github.com/voxpupuli/puppet-nginx