Commit 7713aa0b authored by Michal Čihař's avatar Michal Čihař

Add nginx/uwsgi sample setup

Thanks to Greg Roach
parent a39bb143
...@@ -456,6 +456,19 @@ mod_wsgi (available as :file:`examples/apache.conf`): ...@@ -456,6 +456,19 @@ mod_wsgi (available as :file:`examples/apache.conf`):
.. literalinclude:: ../../examples/apache.conf .. literalinclude:: ../../examples/apache.conf
Sample configuration for nginx
++++++++++++++++++++++++++++++
Following configuration runs Weblate as uwsgi under nginx webserver.
Configuration for nginx (also available as :file:`examples/weblate.nginx.conf`):
.. literalinclude:: ../../examples/weblate.nginx.conf
Configuration for uwsgi (also available as :file:`examples/weblate.uwsgi.ini`):
.. literalinclude:: ../../examples/weblate.uwsgi.ini
Running Weblate under path Running Weblate under path
++++++++++++++++++++++++++ ++++++++++++++++++++++++++
......
server {
listen 80;
server_name weblate;
root /path/to/weblate/weblate;
location /favicon.ico {
root /path/to/weblate/weblate/media;
expires 30d;
}
location /media/ {
root /path/to/weblate/weblate/html;
expires 30d;
}
location /robots.txt {
root /path/to/weblate/weblate/media;
expires 30d;
}
location /static/admin/ {
root /usr/local/lib/python2.7/dist-packages/django/contrib/admin;
expires 30d;
}
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8080;
}
}
[uwsgi]
plugins = python
master = true
protocol = uwsgi
socket = 127.0.0.1:8080
wsgi-file = /path/to/weblate/weblate/wsgi.py
python-path = /path/to/weblate
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment