Bonita BPM doesn't work properly if deployed behind Nginx (Reverse Proxy).

For security reason, Bonita is deployed in a private network behind a reverse proxy, and public access is allowed only through the reverse proxy.
The deployment of a new process doesn’t work using the bonita portal through NGINX (reverse proxy).

Bonita 6.4.1
Tomcat 7.x
JAVA JDK 1.7
Ubuntu

Trying to deploy a process, during the .bar upload phase I get on screen (and nothing in log files) the following generic error message “HTTP Error”. Looks like Bonita product doesn’t fully support a deploy behind reverse proxy.

I had a look to the official product documentation and I didn’t find any answer to my doubts and.

I hope you can clarify my doubts.

Best Regards,
/Alfonso Canzanella

many 10x. I managed to “fix it”! :slight_smile:

Sayd that, I checked the Network TAB and having a look to the HTTP respons, I saw the following error “403 Request Entity Too Large”.

Serfing on Internet I discovered taht by default, Nginx doesn’t allow to upload files bigger than 1MB.
*The client_max_body_size directive assigns the maximum accepted body size of client request, indicated by the line Content-Length in the header of request. If size is greater the given one, then the client gets the error “Request Entity Too Large” (413). *

Solution: Nginx configuration
To fix this issue edit your nginx.conf. Open the Terminal or login to the remote server using ssh client. Type the following command to edit your nginx.conf using a text editor such as vi or joe:

vi /etc/nginx/nginx.conf

OR

vi /usr/local/nginx/conf/nginx.conf

Add the following line to http or server or location context to increase the size limit in nginx.conf, enter:

set client body size to the max size allowed e.g. 4M

client_max_body_size 4M;

Save and close the file. Reload the nginx webserver

Is it possible to share an haproxy configuration or nginx to do like this https://stackoverflow.com/questions/48835057/cant-specify-url-for-bonita-soft-behind-apache-reverse-proxy

i Want to hide context path /bonita un my url

 

 

Hi Alfonso,

Can you provide a little more detail about the HTTP Error (either something displayed on screen or showing the http detailed response in the browser debugger) ?
We have successfully deployed bonita behind a HAProxy which is quite close to a Nginx as far as I know about it.
The issues you may encounter the most with a reverse proxy are http/https redirections depending on your tomcat connector configuration and your reverse proxy (they should match to avoid any problem).

BR

Everything works fine excepted the .BAR upload.!
Did you test the .BAR upoload through the HAProxy?

I would provide to you more info but the only info I have is what you see in the attached snapshot
snapshot

I checked the bonita log file but no errors are there.

are there other logs I can have a look?

BR,
/Alfonso

Yes, the bar upload works correctly.

To understand what is happening, I would need you to open the browser debugger (pressing F12 generally) and in the network tab, you should see the full contents of the http requests and responses.
When clicking on the Upload button, a request should be sent and I be displayed in this tab along with the http response (which is what I am looking for).

Can you tell me what the complete response is, please?

congrats !
I think you ought to set a proper answer for this thread.
Thx for sharing