esig / dss-demonstrations

Examples of DSS integration
GNU Lesser General Public License v2.1
92 stars 70 forks source link

Configuration of the demonstration webapp's ip and port #44

Closed slavistan closed 1 year ago

slavistan commented 1 year ago

Hi. I'm trying to figure out how to configure the ip and port of the webapp's HTTP server.

I've followed the thread of the startup procedure and found that the file dss-demo-bundle-5.11.1/apache-tomcat-8.5.82/conf/server.xml can be used to set the port by changing the value in the <Connector> tag. Are there other methods exposed to configure the webserver?

In particular:

bsanchezb commented 1 year ago

Hi @slavistan ,

DSS does not expose variables for server settings configuration, as the project is only a demo and not meant to be used in production. However, you may try to use maven-assembly-plugin to provide a custom server.xml configuration file. For that you will need to put a modified server.xml file within resources/tomcat/conf/ folder and the assembly-plugin will substitute the file when building the bundle.

Probably, there should be also other ways to automate the configuration but that is out of scope of DSS and I personally did not test that much.

Best regards, Aleksandr.

slavistan commented 1 year ago

@bsanchezb Thank you very much. I'll try out your suggestion.