AOT-Technologies / forms-flow-ai

formsflow.ai is an open source forms-workflow-analytics solution framework.
https://formsflow.ai/
329 stars 183 forks source link

Formsflow External Access #2039

Open danielwebart opened 1 month ago

danielwebart commented 1 month ago

Hello, we installed formsflow in a local Windows 11 environment with Docker Desktop 4.29.0. It's working fine for local access, but we need to access it externally. We redirected port 3000 on the firewall, pointing to the internal IP where Docker is installed, but when calling the external ip url:3000, the forms login screen appears and when entering the username and password to access, the error occurs timeout, appearing to be a redirection problem between ports 3000 and 8080 (forms/keycloak). Has anyone ever had to grant access to forms in a similar scenario and do you have any tips? Thank you very much.

kiran-aot commented 1 month ago

Hi @danielwebart

Please comment on the screenshot or network tab error if possible to learn more about the issue

danielwebart commented 1 month ago

Hi, Answering the questions:

Check your firewall rules again to ensure that there are no restrictions or conflicts that could be causing the timeout issue. -> We checked and theoretically everything is ok;

When accessing Keycloak with a public IP, we either need to install a valid SSL certificate or disable SSL in the realm master settings. -> We checked that SSL is already disabled in the realm.

One observation is that when checking the call through the browser console, we see that after informing port 3000, the routine tries to redirect to the network's internal port. But this redirection happening from within the browser outside the internal network, maybe this is the problem? forms

kiran-aot commented 1 month ago

The browser try to call the URLs and ports that we have given in the .env file while we are installing the formsflow.ai. If we have given http://ip_address:8080 in the env file as keycloak URL it will try to access from public from the browser instead of calling internally