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