How i can integrate the flowable admin+modeler+task+idm with nginx server?

Hi ,

By default all of my flowable admin+modeler+task+idm running under tomcat with full address

http://localhost:8080/flowable-(admin|modeler|task|idm)/

If i want to publish it with my nginx server with the url like

http://flowable-(admin|modeler|task|idm).mysite.com/

Can you guide or show me the link or tutorial to setup it ? thanks .

Cheers,
/Benny

Hi!

I don’t expert in nginx but, I think include in nginx.conf:


server {
server_name modeler.localhost;
rewrite ^ http://localhost:8080/flowable-modeler;
}

server {
	server_name 	idm.localhost;
	rewrite ^ http://localhost:8080/flowable-idm;
}

server {
	server_name 	task.localhost;
	rewrite ^ http://localhost:8080/flowable-task;
}

server {
	server_name 	admin.localhost;
	rewrite ^ http://localhost:8080/flowable-admin;
}

	server {
	server_name 	rest.localhost;
	rewrite ^ http://localhost:8080/flowable-rest;
}

Change localhost for your domain.

I configured it in apache using ajp… It might give you some ideas:

tell flowable to use the proxy:
/opt/flowable/lib/flowable-ui-app.properties

idm.app.url=https://flowable.brewtec.eu:443/flowable-idm
deployment.api.url=https://localhost:443/flowable-task/process-api

configure apache:

   ServerName flowable
   ServerAlias flowable.brewtec.eu

   ProxyRequests Off
   ProxyPreserveHost On


   RewriteEngine On
   RewriteCond %{QUERY_STRING} ^$
   RewriteRule ^/$ https://flowable.brewtec.eu/flowable-task


   ErrorLog /var/log/httpd/tomcat.error.log
   CustomLog /var/log/httpd/tomcat.log combined

   <Proxy *>
           Order deny,allow
           Allow from all
   </Proxy>

   ProxyPass / ajp://localhost:8009/
   ProxyPassReverse / ajp://localhost:8009/