]> Git — Sourcephile - gargantext.git/blob - gargantext.ini
work with Protolude
[gargantext.git] / gargantext.ini
1 [django]
2
3 # SECURITY WARNING: don't run with debug turned on in production!
4 DEBUG = True
5 # SECURITY WARNING: keep the secret key used in production secret!
6 SECRET_KEY = %4{Vs(Pc!GU-]@OaAl0)(*4/yERwU<ct`ncV{1)O%32$6q
7 # Space-separated list of hosts
8 ALLOWED_HOSTS = localhost
9 # Time-zone, possible values here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
10 TIME_ZONE = Europe/Paris
11 # PostgreSQL access
12 DB_HOST = 127.0.0.1
13 DB_PORT = 5432
14 DB_NAME = gargandb
15 DB_USER = gargantua
16 DB_PASS = C8kdcUrAQy66U
17 # Logs
18 LOG_FILE = /var/log/gargantext/backend/django.log
19 LOG_LEVEL = DEBUG
20 LOG_FORMATTER = verbose
21 # Pidfile of django backend test server
22 TESTSERVER_PIDFILE = /tmp/gargantext_testserver.pid
23 # Celery
24 CELERYD_PID_FILE = /tmp/celery.pid
25 CELERYD_LOG_FILE = /var/log/gargantext/backend/celery.log
26 CELERYD_LOG_LEVEL = DEBUG
27
28 [uwsgi]
29
30 # See: http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html
31 # And: http://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html
32
33 # Tip from: https://serverfault.com/questions/411361/uwsgi-ini-configuration-for-python-apps
34 if-env = VIRTUAL_ENV
35 print = [uWSGI] launched from virtualenv %(_)
36 virtualenv = %(_)
37 endif =
38
39 # needed to run uwsgi when it was not installed with pipenv
40 plugins = python35
41 # needed to run uwsgi outside of pipenv shell, because of this virtualenv bug:
42 # https://github.com/kennethreitz/pipenv/issues/829
43 home = /home/alexandre/.local/share/virtualenvs/gargantext-ykNZD4Cw
44 # unix socket is better than TCP one, there is less overhead
45 socket = /tmp/gargantext.sock
46 chmod-socket = 664
47 # user running uwsgi MUST be a member of www-data group
48 chown-socket = %U:www-data
49 # wsgi django module
50 module = gargantext.backend.wsgi:application
51 # about master: http://uwsgi-docs.readthedocs.io/en/latest/Management.html?highlight=master#reloading-the-server
52 master = True
53 # can do: uwsgi --stop /tmp/gargantext.pid
54 pidfile = /tmp/gargantext.pid
55 # clear environment on exit
56 vacuum = True
57 max-requests = 5000
58 # background the process & log
59 daemonize = /var/log/gargantext/uwsgi/@(exec://date +%%Y-%%m-%%d).log
60 logfile-chmod = 644
61 # one log file per day
62 log-reopen = true
63
64 # touch /tmp/gargantext.reload to reload configuration (after git pull for instance)
65 touch-reload = /tmp/gargantext.reload