Make the nginx deployment doc more accurate

This commit is contained in:
Jocelyn Delalande 2017-07-26 16:14:26 +02:00
parent 79e6ae583a
commit d1867f1f74

View file

@ -70,12 +70,19 @@ With Apache and mod_wsgi
With Nginx, Gunicorn and Supervisord
------------------------------------
1. Add the lines in conf/supervisord.conf to your supervisord.conf file.
2. Copy and paste the content of conf/nginx.conf in your nginx conf file.
3. reload both nginx and supervisord. It should be working ;)
.. note:: For the 3 configuration files mentioned below, you will need to fix
the paths to reflect yours.
1. Copy *conf/gunicorn.conf.py* to */etc/ihatemoney/gunicorn.conf.py*
2. Copy *conf/supervisord.conf* to */etc/supervisor/conf.d/ihatemoney.conf*
3. Copy *conf/nginx.conf* with your nginx vhosts [#nginx-vhosts]_
4. Reload both nginx and supervisord. It should be working ;)
Don't forget to set the right permission for your files !
.. [#nginx-vhosts] typically, */etc/nginx/conf.d/* or
*/etc/nginx/sites-available*, depending on your distribution.
Configuration
=============