falco
falco copied to clipboard
Connection refused with docker installation
Reproduction
Steps to reproduce:
- Follow docker install instructions at https://getfal.co/docs/getting-started/installation
- Use the example
docker-compose.prod.yml
file - Configure the
.env.prod
file, add for exampleALLOWED_HOST=falco
- Add
falco
hostname to your hosts file pointing to your laptop or server, ie:
sudo echo "192.168.0.10 falco" >> /etc/hosts
- Open in a browser http://falco
- 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
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 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.