-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdefault.conf
42 lines (32 loc) · 1.06 KB
/
default.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
42
events {}
error_log /dev/stdout info;
# Upgrade WebSocket if requested, otherwise use keepalive
http {
access_log /dev/stdout;
map $http_upgrade $connection_upgrade_keepalive {
default upgrade;
'' '';
}
server {
listen 80;
server_name _;
send_timeout 100m;
client_max_body_size 1000M;
proxy_http_version 1.1;
proxy_max_temp_file_size 10240m;
proxy_buffers 240 240k;
proxy_busy_buffers_size 240k;
proxy_buffer_size 240k;
proxy_request_buffering off;
fastcgi_request_buffering off;
location / {
proxy_pass "$PROXY_HOST"; # Replace with your local IP address
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade_keepalive;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}