AS2 Listening on several ports HTTP

Hello,

On the latest version of Mendelson (2022), I would like to have several ports listened for http.

On the previous version we are using currently 2017, we were able to duplicate "addConnector" block from the jetty.xml to have it working (it was using jetty 9).

However, on the new version which is using jetty 10, duplicate the block is not working, it says that "httpConnector" id has to be unique (it also doesn't work when I change the id).
It seems that in the version 2022, the port is now configured in the "jetty.config" (jetty.http.port=XXXX) and not anymore on "jetty.xml"
It has been several days I tried to configure a second http port on jetty 10 but I didn't found how to do that.

Does anyone already face it and succeeded to do it ?
Any help on this would be appreciate.

Thanks in advance

Forum
AS2

Comments

Hello atchen,
I added a reverse proxy in front of the as2server.
- jetty is running on port 8666 with http bound on localhost
- reverse proxy runs with several ports (https) and passes the connections to localhost:8666
I am running haproxy as reverse proxy, but you can use any other e.g. nginx.
So in my setup i do the ssl offloading in reverse proxy and pass the connection to the backend with plain http. We have Partners who have high security standards and partners who dont care about security, so there was a day when i had to update ssl ciphers and remove weak ones. Guess what, one partner was not able to connect because he could not handle the new ciphers. Thats why i have a seperate config for each partner now and can handle different ssl configs for each partner.
I hope this helps a bit, but be aware, i have not tested this setup with certificate Authorisation or SNI yet.
Kind Regards

Matthias