-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
36 lines (28 loc) · 872 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
worker_processes 1;
events {
worker_connections 1024;
}
http {
error_log /etc/nginx/error_log.log warn;
client_max_body_size 20m;
resolver 127.0.0.11 ipv6=off;
server {
##
# Default server.
listen 3128;
# dns resolver used by forward proxying
resolver 127.0.0.11 ipv6=off;
# forward proxy for CONNECT request
proxy_connect;
proxy_connect_allow 443 3443;
proxy_connect_connect_timeout 10s;
proxy_connect_read_timeout 10s;
proxy_connect_send_timeout 10s;
proxy_connect_address 10.10.115.22:3007 ;
# forward proxy for non-CONNECT request
location / {
proxy_pass https://10.10.10.10:8080 ;
proxy_set_header Host $http_host;
}
}
}