You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
47 lines
1.0 KiB
user www-data;
|
|
worker_processes auto;
|
|
pid /run/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
use epoll;
|
|
multi_accept on;
|
|
}
|
|
|
|
http {
|
|
access_log /dev/stdout;
|
|
error_log /dev/stdout;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 2048;
|
|
|
|
client_max_body_size 20M;
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
index index.html index.htm;
|
|
|
|
server {
|
|
listen 5000 default_server;
|
|
listen [::]:5000 default_server;
|
|
server_name localhost;
|
|
root /var/www/html;
|
|
|
|
location / {
|
|
include uwsgi_params;
|
|
uwsgi_pass unix:/tmp/uwsgi.socket;
|
|
uwsgi_read_timeout 1h;
|
|
uwsgi_send_timeout 1h;
|
|
proxy_send_timeout 1h;
|
|
proxy_read_timeout 1h;
|
|
|
|
proxy_buffer_size 128k;
|
|
proxy_buffers 4 256k;
|
|
proxy_busy_buffers_size 256k;
|
|
}
|
|
}
|
|
}
|
|
|