falco icon indicating copy to clipboard operation
falco copied to clipboard

Connection refused with docker installation

Open juanluisbaptiste opened this issue 3 years ago • 2 comments

Reproduction

Steps to reproduce:

  1. Follow docker install instructions at https://getfal.co/docs/getting-started/installation
  2. Use the example docker-compose.prod.yml file
  3. Configure the .env.prod file, add for example ALLOWED_HOST=falco
  4. Add falco hostname to your hosts file pointing to your laptop or server, ie:
sudo echo "192.168.0.10 falco" >> /etc/hosts
  1. Open in a browser http://falco
  2. Falco returns a redirection to https://falco which ends in a connection refused error.

Expected Behavior

Falco login page should be loaded

Actual Behavior

A connection refused error:

curl -IL http://falco
HTTP/1.1 301 Moved Permanently
Server: 
Date: Fri, 05 Feb 2021 04:37:21 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Location: https://falco/
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block

curl: (7) Failed to connect to falco port 443: Connection refused

Environment

Using example docker-compose.prod.yml and .env.prod.dist example files (only changing postgres db password env variables as noted in issue #239 ).

  • Browser(s): Firefox 85.0
  • Operating System (e.g. Windows, macOS, Ubuntu): Kubuntu 20.04

juanluisbaptiste avatar Feb 05 '21 02:02 juanluisbaptiste

Dear @juanluisbaptiste did you use a reverse proxy with SSL?

As written in the documentation:

For production use, we recommend using a PostgreSQL with valid SSL certificates and expose the application with a frontal server managing the HTTPS certificates. Without a valid SSL certificate, the application will not work.

MParvin avatar Apr 14 '22 22:04 MParvin

@MParvin no I didn't I followed the documentation to test it out, why think in a production setup if I was not able to even get it running in my laptop.

juanluisbaptiste avatar Apr 14 '22 23:04 juanluisbaptiste