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:
https://github.com/hubspotdevops/puppet-nexus/blame/master/README.md#L35
Readme contains this paragraph:
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:application-port-ssl=8443
bin/jsw/conf/wrapper.conf
, addwrapper.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
bin/jsw/conf/wrapper.conf
, addwrapper.app.parameter.4=./conf/jetty-http-redirect-to-https.xml