Commit Graph

8 Commits

Author SHA1 Message Date
Ben Busby
c51dad7529 Add check for Tor socket on init, improve Tor error handling
Initializing the app sends a heartbeat request to Tor to check for
availability, and updates the home page config options accordingly. This
heartbeat is sent on every request, to ensure Tor support can be
reconfigured without restarting the entire app.

If Tor support is enabled, and a subsequent request fails, then a new
TorError exception is raised, and the Tor feature is disabled until a
valid connection is restored.

The max attempts has been updated to 10, since 5 seemed a bit too low
for how quickly the attempts go by.
2020-10-25 21:14:20 -04:00
Ben Busby
d7442a18a5 Refactor acquire_tor_conn -> acquire_tor_identity
Also updated travis CI to set up tor
2020-10-25 18:33:45 -04:00
Ben Busby
ddf46e3bc0 Added travis ci deploy to pypi 2020-05-21 17:03:44 -06:00
Ben Busby
11fa44eec1 Minor refactoring for clarification
Executable renamed to "run" to avoid confusion with pip installed script

Updated heroku deploy button to use the heroku-app branch, which by
default enforces HTTPS

Added instructions for enforcing HTTPS on various deployment options,
with note about how this isn't a required task.

Updated setup.py description to use improved app description
2020-05-15 16:47:39 -06:00
Ben Busby
9ca74397b4 Adding setup for pip packaging 2020-05-06 17:24:18 -06:00
Ben Busby
1c5f57e692
Fixed travis CI
Previous commit relocated requirements.txt back to the root level of the repo, but Travis wasn't updated accordingly.
2020-04-24 17:27:21 -06:00
Ben Busby
a76cf87c26 Fixed missing gnutls in travis ci 2020-04-15 17:43:57 -06:00
Ben Busby
b5b6e64177 Added testing and ci build, refactored filter class, refactored project structure 2020-04-15 17:41:53 -06:00