summaryrefslogtreecommitdiff
path: root/lib/nginx
Commit message (Collapse)AuthorAge
* enable gzip compression for css, js. hide nginx versionIlya Shipitsin2017-11-01
|
* lib: Update uWSGI, nginx config filesStephen Finucane2017-05-04
| | | | | | | | | The nginx file was a replacement for '/etc/nginx/nginx.conf' instead of a "site" file, while the uWSGI file referenced the Python 2 plugin despite the sample deployment guide, which uses this, being Python 3-based. Correct both issues. Signed-off-by: Stephen Finucane <stephen@that.guru>
* lib: Refresh nginx/uwsgi configurationThomas Monjalon2016-09-07
| | | | | | | | | | | | | | | | | As stated in http://uwsgi-docs.readthedocs.io/en/latest/Nginx.html: " Unfortunately nginx is not able to rewrite PATH_INFO accordingly to SCRIPT_NAME. For such reason you need to instruct uWSGI to map specific apps in the so called “mountpoint” and rewrite SCRIPT_NAME and PATH_INFO automatically [...] ancient uWSGI versions used to support the so called “uwsgi_modifier1 30” approach. Do not do it. it is a really ugly hack " Replacing the uwsgi_modifier1 hack by a mount point seems to work. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
* lib: Add nginx and uWSGI configuration filesStephen Finucane2016-02-14
nginx and uWSGI are a well-known option for deploying Django applications today - might as well embrace them. Conversely, the mod_python variable and fastcgi service are both deprecated and should not be used. Remove these. Signed-off-by: Stephen Finucane <stephen.finucane@intel.com> Suggested-by: Thomas Monjalon <thomas.monjalon@6wind.com>