Script and website to extract relay statistics (Downstream Fork)
https://gitweb.torproject.org/compass.git/
This repository has been archived on 2023年04月30日 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
- Python 64.2%
- HTML 27.3%
- JavaScript 5.5%
- Shell 1.8%
- CSS 1.2%
| static | Fixed a bug in initial sorting | |
| templates | moved links in footer to top navbar | |
| testing | Added another testcase to the unit tests. Improved README | |
| .gitignore | Add webapp code | |
| app.py | Provided default arguments for all parameters. | |
| app.wsgi | Update sample webapp configuration for Apache. | |
| compass.py | self._datafile_name not set when it's already needed by self._create_filters | |
| Procfile | Add webapp code | |
| README | Initial commit. | |
| README.md | Update sample webapp configuration for Apache. | |
| requirements.txt | Add webapp code | |
| util.py | Fix for #7924 . | |
Tor relay stats
Show various metrics related to tor relays.
Deploy
* Install Pip
$ apt-get install python-dev python-pip
* Use requirements.txt to install dependancies
$ pip install -r requirements.txt
* Install foreman
$ gem install foreman
* Use the Procfile to run the app
$ foreman start
In case you want to use Apache,
$ cat app.wsgi
#!/usr/bin/python
import os, sys
sys.path.append('/path/to/app')
from app import app as application
$ cat /etc/apache2/sites-available/default
WSGIDaemonProcess compass user=nobody group=compass threads=5
WSGIScriptAlias /compass /srv/compass.torproject.org/compass/app.wsgi
<Directory /srv/compass.torproject.org/compass>
WSGIProcessGroup compass
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>