-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
41 lines (34 loc) · 804 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
client_body_temp_path /spool/nginx/client_temp 1 2;
fastcgi_temp_path /spool/nginx/fastcgi_temp 1 2;
proxy_temp_path /spool/nginx/proxy_temp 1 2;
scgi_temp_path /spool/nginx/scgi_temp 1 2;
uwsgi_temp_path /spool/nginx/uwsgi_temp 1 2;
server {
listen 8080;
server_name localhost;
charset utf-8;
client_max_body_size 75M;
access_log /var/log/nginx/access.log;
location /static {
root /app/yLCD;
expires 1d;
}
location / {
try_files $uri @yLCD;
}
location @yLCD {
include uwsgi_params;
uwsgi_pass unix:/app/uwsgi.sock;
}
}
}