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