2 MASTER_USER = gargantua
6 # SECURITY WARNING: don't run with debug turned on in production!
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
19 DB_PASS = C8kdcUrAQy66U
21 LOG_FILE = /var
/log
/gargantext
/backend
/django.log
23 LOG_FORMATTER = verbose
24 # Pidfile of django backend test server
25 TESTSERVER_PIDFILE = /tmp
/gargantext_testserver.pid
27 CELERYD_PID_FILE = /tmp
/celery.pid
28 CELERYD_LOG_FILE = /var
/log
/gargantext
/backend
/celery.log
29 CELERYD_LOG_LEVEL = DEBUG
33 # See: http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html
34 # And: http://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html
36 # Tip from: https://serverfault.com/questions/411361/uwsgi-ini-configuration-for-python-apps
38 print = [uWSGI
] launched from virtualenv
%(_
)
42 # needed to run uwsgi when it was not installed with pipenv
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
50 # user running uwsgi MUST be a member of www-data group
51 chown-socket = %U
:www
-data
53 module = gargantext.backend.wsgi
:application
54 # about master: http://uwsgi-docs.readthedocs.io/en/latest/Management.html?highlight=master#reloading-the-server
56 # can do: uwsgi --stop /tmp/gargantext.pid
57 pidfile = /tmp
/gargantext.pid
58 # clear environment on exit
61 # background the process & log
62 daemonize = /var
/log
/gargantext
/uwsgi
/@
(exec
://date
+%%Y
-%%m
-%%d
).log
64 # one log file per day
67 # touch /tmp/gargantext.reload to reload configuration (after git pull for instance)
68 touch-reload = /tmp
/gargantext.reload