Custom Connector Proxy Settings

1
0
-1

We have several diagrams and on each diagram, we have a custom connector that needs to contact SharePoint online for authentication and document upload.

The problem is our server where bonitasoft is deployed is under a proxy server. So whenever we want to deploy each process to production, we need to share the proxy settings for all custom connectors

Is there a way to do it automatically or our custom connector to read the proxy settings from configuration file?

Comments

Submitted by romain.bioteau on Mon, 06/28/2021 - 15:16

What about configuring the proxy settings when starting the Bonita tomcat bundle ?

Does the Sharepoint client require additional settings ?

Submitted by habdulmalak_2529287 on Mon, 06/28/2021 - 17:14

can't we have it as a setting on the bonita engine server deployed to use the proxy settings for outgoing requests?

We surely can add it to the custom connector but we have to change it each time we want to deploy.

The production server has different proxy settings from our development environment

Submitted by romain.bioteau on Mon, 06/28/2021 - 17:21

I was not talking about handling it in your custom connector but directly setting the system properties when starting the bundle.

You can add system properties in the Server preference of the Studio (for the Studio env). Or edit the setenv.sh of a production bundle (see the documentation reference)

Submitted by habdulmalak_2529287 on Tue, 06/29/2021 - 08:08

<p>I'm new to Bonita</p>

<p>when tomcat starts the setenv.sh file gets overwritten so any custom config in it is lost.</p>

Submitted by romain.bioteau on Tue, 06/29/2021 - 09:16

You need to edit the setenv.sh(or .bat) template file from the setup folder: setup/tomcat-templates/setenv.sh

Submitted by habdulmalak_2529287 on Wed, 06/30/2021 - 08:53

Thank you it works now

1 answer

1
0
-1
This one is the BEST answer!

You need to edit the setenv.sh (or .bat) template file from the setup folder: setup/tomcat-templates/setenv.sh and add the proxy system properties.

Notifications