Version 14 (modified by 6 years ago) (diff) | ,
---|
support.torproject.org
This is the deployment documentation for support.torproject.org.
Requirements
- Apache2 (apache2)
- Prosody (prosody)
- mod_auto_accept_subscriptions
- Passenger (libapache2-mod-passenger)
- Django (python-django)
- pups
Configs
Apache2
Config location: /etc/apache2/apache2.conf
Example config: https://gist.githubusercontent.com/Phoul/2c4131153cd9f024f7ef/raw/65f272d564f605b6b2224880144e7b092acf22b7/apache2
Redirecting the BOSH port(as shown in the config above) is required for pups to function correctly. An example config has been provided above, and will be updated with the running config once it is deployed.
Prosody
Config location: /etc/prosody/prosody.cfg.lua Mod location: /usr/lib/prosody/modules/
Example config: https://gist.githubusercontent.com/Phoul/e8438e9169dacbf43f34/raw/e1ddb3cde25bae4da0cb919010b1eddc3c70b763/prosody.cfg.lua
The main configuration for Prosody is enabling the BOSH module, as well as having two vhosts (one for anonymous XMPP, and one for authenticated). An example config has been provided above, and will be updated with the running config once it is deployed. For pups to function correctly, you also need to install the "mod_auto_accept_subscriptions" Prosody module.
Tor Pups
Installation:
- git clone https://gitweb.torproject.org/pups.git
- cp pups/pups/settings.py.sample pups/pups/settings.py
- python manage.py syncdb (Would you like to create one now? (yes/no): no)
- chown -R www-data:www-data pups/pups/databases/
- chmod -R 770 pups/pups/databases/
- python manage.py createuser USERNAME PASSWORD
- vim pups/pups/settings.py and fill in the CONFIG dict (See Settings sample)