Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What's the purpose of setevn.BAT/setenv.sh in a Confluence service installed in a Windows Server?

Claudio Cocciatelli April 30, 2020

Hello to everyone,

We have installed Confluence and Apache Tomcat in a Windows Server machine. We want to connect an app(a connector, congree scroll connector) in our confluence with a Congree server(different from our confluence).

The installation guide provided for us tell us to use:

  • SSL connection to connect Confluence to Congree server -> we have created a certificate SSL to connect it;
  • Add some properties inside setevn.sh and setenv.BAT in our C:\Program Files\Atlassian\Confluence\bin;
  • We have connected this app to one of our spaces inside confluence(test space);
  • We have restarted Atlassian service and the we have restarted also our physical server;
  • When server returns up we tried to use congree scroll connector from one page created in our space but in inspector page of Chrome it appears: 

    batch.js?confluence.table.resizable=true&frontend.editor.v4=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-GB:9971 Mixed Content: The page at 'https://smuc7042.bmwgroup.net/confluence/pages/editpage.action?pageId=94896130' was loaded over HTTPS, but requested an insecure script 'http://congree-isv-dev5.congree.com/CongreeWebInterface/app/cwi-integration.js'. This request has been blocked; the content must be served over HTTPS(it seems that the request refers to the default site used by the guys that provided us the application)

 

I don't know if we need to do other actions. This is the guide that we followed: https://www.k15t.com/congree-connector/administration/installation

In Chrome we have some issue to connect in HTTPS mode in the Congree server because in Chrome it didn't valid our certificate: the problem that I said here can be linked to this certificate issue? I tried to connect with IE in HTTPS mode to our machine and it works.

Thanks in advance for your help,

Best regards,

Claudio

1 answer

1 accepted

1 vote
Answer accepted
Moses Thomas
Community Champion
April 30, 2020

@Claudio CocciatelliThey are needed  for  configuring system properties.

this a  guide to understand what they are meant for.

 Configuring System Properties 

Kind regards,

Mo

Claudio Cocciatelli April 30, 2020

Thank you @Moses Thomas . One other question: I added the properties requested for our congree scroll connector in setenv.bat in this way:

set CATALINA_OPTS=-Dcongree.server=https://smuc8374.bmwgroup.net %CATALINA_OPTS%
set CATALINA_OPTS=-Dcongree.js.path=/CWI_DokuNext/App/cwi-integration.js %CATALINA_OPTS%

I have restarted confluence windows service and then also the physical machine(our server). When I try to use the connector it said to me the error: batch.js?confluence.table.resizable=true&frontend.editor.v4=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-GB:9971 Mixed Content: The page at 'https://smuc7042.bmwgroup.net/confluence/pages/editpage.action?pageId=94896130' was loaded over HTTPS, but requested an insecure script 'http://congree-isv-dev5.congree.com/CongreeWebInterface/app/cwi-integration.js'. This request has been blocked; the content must be served over HTTPS(it seems that the request refers to the default site used by the guys that provided us the application)

 

It's strange because I've changed the congree.server settings in my .BAT file. Do you have any advise?

Moses Thomas
Community Champion
April 30, 2020

@Claudio Cocciatelli  So may be they have a firewall from their ends that is blocking your request and redirecting you to some  other site.

Like Claudio Cocciatelli likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events