2018-03-14 12:13:00 +01:00
|
|
|
user nginx;
|
|
|
|
pid /run/nginx.pid;
|
|
|
|
worker_processes 1;
|
|
|
|
error_log /dev/stderr warn;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log off;
|
|
|
|
server_tokens off;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
sendfile on;
|
|
|
|
|
|
|
|
server {
|
2018-03-25 23:19:45 +02:00
|
|
|
listen 8080;
|
2018-03-14 12:13:00 +01:00
|
|
|
|
|
|
|
location /eden {
|
|
|
|
uwsgi_pass unix:///run/uwsgi;
|
|
|
|
uwsgi_read_timeout 300s;
|
|
|
|
uwsgi_send_timeout 300s;
|
|
|
|
include uwsgi_params;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* /eden/static {
|
|
|
|
root /srv/web2py/applications;
|
|
|
|
expires max;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|