...
Code Block | ||
---|---|---|
| ||
BASE_DIR = '/path/to/lobber/'
APP_ADDR = 'host_ip or FQDN'
TRACKER_ADDR = 'host_ip or FQDN'
ADMINS = (
('Your name', 'your@email.net'),
DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'lobber'
DATABASE_USER = 'lobber'
DATABASE_PASSWORD = 'secret_password'
DATABASE_HOST = 'database host'
DATABASE_PORT = 'database port'
DROPBOX_DIR = '/dir/writable/by/apache/user/dropbox'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'secret'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes', # For the Permission model.
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'tagging',
'lobber.extensions',
'lobber.userprofile',
'lobber.share',
'lobber.links',
'lobber.tracker',
'lobber.auth'
)
|
...
Code Block | ||
---|---|---|
| ||
WSGIPythonPath "/path/to/lobber:/path/to/lobber/src"
WSGIPythonHome "/path/to/lobber/src/env"
WSGIScriptAlias / /path/to/lobber/src/lobber.wsgi
|
Edit /etc/apache2/sites-available/default:
Code Block | ||
---|---|---|
| ||
Alias /admin-media /path/to/lobber/admin-media
Alias /site-media /path/to/lobber/site-media
|
Usual problems:
/path/to/lobber/logs/web.log is not writable by www-data (apache user).
/path/to/lobber/db/ (if you are using sqlite) is not writable by www-data (apache user).
Set up cron jobs for expiring old torrents, keys and peers.
...