-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
41 lines (41 loc) · 1.31 KB
/
Copy pathnginx.conf
File metadata and controls
41 lines (41 loc) · 1.31 KB
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
worker_processes 1;
pid /tmp/nginx.pid;
error_log /dev/null;
events { worker_connections 256; }
http {
access_log off;
server_tokens off;
client_body_temp_path /tmp/client;
proxy_temp_path /tmp/proxy;
fastcgi_temp_path /tmp/fastcgi;
uwsgi_temp_path /tmp/uwsgi;
scgi_temp_path /tmp/scgi;
resolver 127.0.0.11 valid=10s ipv6=off;
server {
listen 8080;
client_max_body_size 1m;
client_body_timeout 60s;
location / {
set $api http://api:8000;
proxy_pass $api;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_buffering off;
proxy_read_timeout 300s;
}
location = /api/v1/datasets {
# Increase alongside explicit administrator-approved upload limits.
client_max_body_size 1024m;
proxy_request_buffering off;
proxy_http_version 1.1;
set $api http://api:8000;
proxy_pass $api;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_buffering off;
proxy_read_timeout 300s;
}
# Worker-control credentials are accepted only on the private network.
location /internal/ { return 404; }
}
}