Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
57073bad
Commit
57073bad
authored
Nov 03, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CONF] Clean uWSGI configuration
parent
6eb50501
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
63 deletions
+28
-63
gargantext.ini
gargantext.ini
+28
-63
No files found.
gargantext.ini
View file @
57073bad
...
@@ -6,69 +6,34 @@ DB_PASS = C8kdcUrAQy66U
...
@@ -6,69 +6,34 @@ DB_PASS = C8kdcUrAQy66U
[uwsgi]
[uwsgi]
env
=
DJANGO_SETTINGS_MODULE=gargantext.settings
# See: http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html
#
module = django.core.handlers.wsgi:WSGIHandler()
#
And: http://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html
plugins
=
python35
# Tip from: https://serverfault.com/questions/411361/uwsgi-ini-configuration-for-python-apps
if-env
=
VIRTUAL_ENV
print
=
[uWSGI] launched from virtualenv %(_)
virtualenv
=
%(_)
endif
=
# the base directory
# unix socket is better than TCP one, there is less overhead
chdir
=
/srv/gargantext
# Django's wsgi file
#module = wsgi
wsgi-file
=
/srv/gargantext/gargantext/wsgi.py
# the virtualenv
home
=
/srv/env_3-5
lazy-apps
=
True
# master
master
=
true
# maximum number of processes
processes
=
10
# the socket (use the full path to be safe)
socket
=
/tmp/gargantext.sock
socket
=
/tmp/gargantext.sock
chmod-socket
=
664
threads
=
4
# user running uwsgi MUST be a member of www-data group
chown-socket
=
%U:www-data
# with appropriate permissions - *may* be needed
# wsgi django module
chmod-socket
=
666
module
=
gargantext.wsgi:application
# about master: http://uwsgi-docs.readthedocs.io/en/latest/Management.html?highlight=master#reloading-the-server
# clear environment on exit
master
=
True
vacuum
=
true
# can do: uwsgi --stop /tmp/gargantext.pid
pidfile
=
/tmp/gargantext.pid
pidfile
=
/tmp/gargantext.pid
# clear environment on exit
# touch /tmp/gargantext.reload to reload configuration (after git pull for instance)
vacuum
=
True
touch-reload
=
/tmp/gargantext.reload
# respawn processes taking more than 20 seconds
harakiri
=
1200
post-buffering
=
8192
# limit the project to 128 MB
#limit-as = 128
# respawn processes after serving 5000 requests
max-requests
=
5000
max-requests
=
5000
# background the process & log
# background the process & log
#daemonize = /var/log/uwsgi/gargantext.log
daemonize
=
/var/log/gargantext/uwsgi/@(exec://date +%%Y-%%m-%%d).log
daemonize
=
/var/log/gargantext/uwsgi/@(exec://date +%%Y-%%m-%%d_%%H%%M).log
logfile-chmod
=
644
# one log file per day
log-reopen
=
true
log-reopen
=
true
#uid = 1000
# touch /tmp/gargantext.reload to reload configuration (after git pull for instance)
#gid = 1000
touch-reload
=
/tmp/gargantext.reload
#
how-config
=
true
disable-logging
=
false
logfile-chmod
=
644
#logfile-chown=false
log-maxsize
=
500000000
##logto=%(chdir)logs/uwsgi_access.log
#logger = longquery file:%(chdir)logs/uwsgi_long.log
#log-route = longquery msec
#
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment