forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
37 lines (29 loc) · 896 Bytes
/
nginx.conf
File metadata and controls
37 lines (29 loc) · 896 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
29
30
31
32
33
34
35
36
37
error_log stderr;
pid dev/nginx.pid;
events {
}
http {
server_tokens off;
proxy_buffers 8 16k; # Buffer pool = 8 buffers of 16k
proxy_buffer_size 16k; # 16k of buffers from pool used for headers
# We can upload large extensions
client_max_body_size 150M;
# Don't timeout websockets quickly. Default is 60s. This is the timeout
# between reads/writes, not the full session timeout.
proxy_send_timeout 1h;
proxy_read_timeout 1h;
access_log off;
upstream backend {
server localhost:3082;
}
client_body_temp_path dev/nginx/body;
server {
listen 3081;
location / {
proxy_pass http://backend;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}