mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 20:55:10 +01:00
Example configuration
This commit is contained in:
@@ -1,2 +1,7 @@
|
|||||||
# digimarks
|
# digimarks
|
||||||
Simple bookmarking service
|
Simple bookmarking service
|
||||||
|
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
Copy `example_config/settings.py` to your install location and change to your needs (*at the least* change the value of `SYSTEMKEY`).
|
||||||
|
|||||||
29
example_config/apache_vhost.conf
Normal file
29
example_config/apache_vhost.conf
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@example.com
|
||||||
|
ServerName marks.example.com
|
||||||
|
|
||||||
|
WSGIDaemonProcess digimarks user=youruser group=youruser threads=5 python-path=/srv/marks.example.com/digimarks/
|
||||||
|
WSGIScriptAlias / /srv/marks.example.com/digimarks/wsgi.py
|
||||||
|
|
||||||
|
<Directory /srv/marks.example.com/digimarks>
|
||||||
|
WSGIProcessGroup digimarks
|
||||||
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory /srv/marks.example.com/digimarks>
|
||||||
|
<Files wsgi.py>
|
||||||
|
Require all granted
|
||||||
|
</Files>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog /var/log/apache2/error_marks.example.com.log
|
||||||
|
|
||||||
|
# Possible values include: debug, info, notice, warn, error, crit,
|
||||||
|
# alert, emerg.
|
||||||
|
LogLevel warn
|
||||||
|
|
||||||
|
CustomLog /var/log/apache2/access_marks.example.com.log combined
|
||||||
|
ServerSignature On
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
14
example_config/settings.py
Normal file
14
example_config/settings.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Virtualenv to use with the wsgi file
|
||||||
|
VENV = '/srv/marks.example.com/venv/bin/activate_this.py'
|
||||||
|
|
||||||
|
PORT = 8086
|
||||||
|
|
||||||
|
DEBUG = False
|
||||||
|
|
||||||
|
# Password/url key to do admin stuff with, like adding a user
|
||||||
|
SYSTEMKEY = 'S3kr1t'
|
||||||
|
|
||||||
|
LOG_LOCATION = 'digimarks.log'
|
||||||
|
#LOG_LOCATION = '/var/log/digimarks/digimarks.log'
|
||||||
|
# How many logs to keep in log rotation:
|
||||||
|
LOG_BACKUP_COUNT = 10
|
||||||
15
example_config/uwsgi.ini
Normal file
15
example_config/uwsgi.ini
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Example supervisord configuration
|
||||||
|
# Run with /srv/venv/bin/uwsgi --ini /srv/digimarks/uwsgi.ini:digimarks
|
||||||
|
|
||||||
|
[digimarks]
|
||||||
|
chdir = /srv/digimarks
|
||||||
|
socket = /tmp/uwsgi_digimarks.sock
|
||||||
|
module = wsgi
|
||||||
|
threads = 4
|
||||||
|
master = true
|
||||||
|
processes = 5
|
||||||
|
vacuum = true
|
||||||
|
no-orphans = true
|
||||||
|
chmod-socket = 666
|
||||||
|
logger = main file:/var/log/webapps/digimarks.log
|
||||||
|
logger = file:/var/log/webapps/digimarks_debug.log
|
||||||
Reference in New Issue
Block a user