threatnote icon indicating copy to clipboard operation
threatnote copied to clipboard

Access Outside of Localhost

Open theonlykernel opened this issue 5 years ago • 2 comments

The app cannot be run on a server and accessed remotely - how does one allow connections outside of localhost?

theonlykernel avatar May 21 '20 16:05 theonlykernel

You can host the docker image in a variety of cloud platforms, such as AWS. Access can be determined based on the security groups and routing available on that platform.

For instance, AWS and Digital Ocean offer Linux instances optimized for docker containers. Hosting a docker image on these would put it in a place where access can be routed to external users.

aaronsdevera avatar May 28 '20 20:05 aaronsdevera

@theonlykernel It's definitely possible but requires making sure you have a web server like Apache or Nginx set up to handle connections from the outside. You also need to configure the firewall (e.g. ufw) to accept connections on a specified port. That being said, it might be good to cover web server and firewall configs in the installation instructions. Disabling CSRF in main.py might also be necessary depending on your configuration.

davidljohnson avatar Jul 23 '20 02:07 davidljohnson