Spotter-VM/sahana/docker/etc/nginx/nginx.conf

42 lines
726 B
Nginx Configuration File

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 {
listen 8001;
server_name localhost;
location = / {
return 301 $http_x_forwarded_proto://$http_x_forwarded_host/eden;
}
location /eden {
uwsgi_pass unix:///run/uwsgi;
uwsgi_read_timeout 300s;
uwsgi_send_timeout 300s;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
}
location ~* /eden/static {
root /srv/web2py/applications;
expires max;
}
}
}