forked from httprunner/FasterRunner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
28 lines (25 loc) · 850 Bytes
/
Copy pathnginx.conf
File metadata and controls
28 lines (25 loc) · 850 Bytes
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
server {
listen 5000;
server_name 127.0.0.1;
charset utf-8;
keepalive_timeout 1800s;
client_header_timeout 1800s;
client_body_timeout 1800s;
proxy_connect_timeout 1800s;
proxy_read_timeout 1800s;
proxy_send_timeout 1800s;
send_timeout 1800s;
uwsgi_send_timeout 1800s;
uwsgi_read_timeout 1800s;
client_max_body_size 75M; # adjust to taste
location /media {
alias /opt/workspace/FasterRunner/media; # your Django project's media files - amend as required
}
location /static {
alias /opt/workspace/FasterRunner/static; # your Django project's static files - amend as required
}
location / {
include uwsgi_params;
uwsgi_pass unix:/opt/workspace/FasterRunner/FasterRunner.sock;
}
}