[RTFACT-18223] Support adding a new connector to tomcat server.xml in Artifactory docker images Created: 07/Jan/19  Updated: 04/Apr/19  Resolved: 10/Feb/19

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Docker Image, Tomcat
Affects Version/s: None
Fix Version/s: 6.8.0

Type: Improvement Priority: High
Reporter: Nihal Reddy Chinna Choudhary Assignee: Eldad Assis
Resolution: Fixed Votes: 1
Labels: None

Assigned QA: Konstantin Shenderov

 Description   

Currently we have env variables for configuring the Artifactory tomcat port or max tomcat threads or any additional properties to the tomcat connector. But there is no env variable that can be used to add a new tomcat connector to the server.xml.

The additional tomcat connector is useful in cases where a user wants to configure SSL on the tomcat.

https://www.jfrog.com/confluence/display/RTF/Installing+with+Docker#InstallingwithDocker-TomcatServer.xml



 Comments   
Comment by Eldad Assis [ 08/Jan/19 ]

Need to add the new variable: SERVER_XML_EXTRA_CONNECTOR to  https://www.jfrog.com/confluence/display/RTF/Installing+with+Docker#InstallingwithDocker-TomcatServer.xml

The description should be: "Add another connector to Tomcat. For example to support SSL" (add link to example if exists)

 

 

 

Comment by Eldad Assis [ 08/Jan/19 ]

To test this, do the following

  1. Create SSL key and certificate
    $ mkdir ssl
    $ openssl req -newkey rsa:2048 -nodes -keyout ssl/private.key -x509 -days 365 -out ssl/root.crt
  2. Start docker with the following command line:
    $ docker run --rm -e SERVER_XML_EXTRA_CONNECTOR='<Connector port="8443" scheme="https" secure="true" SSLEnabled="true" SSLCertificateFile="/opt/ssl/root.crt" SSLCertificateKeyFile="/opt/ssl/private.key" SSLProtocol="TLSv1" />' -p 8443:8443 -p 8081:8081 -v $(pwd)/ssl:/opt/ssl docker.jfrog.io/jfrog/artifactory-oss:VERSION
  3. Browse to https://localhost:8443 (you will need to proceed to the untrusted site as this is a self generated key + certificate)

 

 

Generated at Sun Oct 20 06:47:35 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.