Archived
1
0
Fork
You've already forked compass
0
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%
Find a file
2013年02月06日 16:11:57 +01:00
static Fixed a bug in initial sorting 2012年12月29日 14:36:47 -05:00
templates moved links in footer to top navbar 2013年01月17日 22:59:05 +05:30
testing Added another testcase to the unit tests. Improved README 2013年01月15日 16:26:04 -05:00
.gitignore Add webapp code 2012年08月16日 21:06:21 +02:00
app.py Provided default arguments for all parameters. 2013年01月15日 15:41:56 -05:00
app.wsgi Update sample webapp configuration for Apache. 2012年08月16日 21:06:29 +02:00
compass.py self._datafile_name not set when it's already needed by self._create_filters 2013年02月06日 16:11:57 +01:00
Procfile Add webapp code 2012年08月16日 21:06:21 +02:00
README Initial commit. 2012年08月16日 13:11:34 +02:00
README.md Update sample webapp configuration for Apache. 2012年08月16日 21:06:29 +02:00
requirements.txt Add webapp code 2012年08月16日 21:06:21 +02:00
util.py Fix for #7924 . 2013年01月15日 16:09:30 -05:00

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>