-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
29 lines (28 loc) · 915 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
worker_processes 1;
error_log logs/error.log info;
events {
worker_connections 1024;
}
stream {
log_format main '$remote_addr [$time_local] '
'protocol $status $bytes_sent $bytes_received '
'$session_time '
'ssl_preread_server_name $server_port ';
resolver 114.114.114.114;
server {
listen 443;
ssl_preread on;
proxy_connect_timeout 5s;
proxy_pass $ssl_preread_server_name:$server_port;
access_log /usr/local/nginx/logs/proxy-access.log main;
}
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
}