-
Notifications
You must be signed in to change notification settings - Fork 0
/
mike.conf
31 lines (26 loc) · 917 Bytes
/
mike.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
upstream ingress_dns {
least_conn;
server nd4.chinaeast2.cloudapp.chinacloudapi.cn max_fails=3 fail_timeout=5s;
server nd5.chinaeast2.cloudapp.chinacloudapi.cn max_fails=3 fail_timeout=5s;
server nd5.chinaeast2.cloudapp.chinacloudapi.cn max_fails=3 fail_timeout=5s;
}
server {
listen 443 ssl;
server_name ap1.chinaeast2.cloudapp.chinacloudapi.cn;
ssl_certificate certificate.crt;
ssl_certificate_key private.key;
location /1 {
root /usr/share/nginx/html;
index 1.html;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ingress_dns;
proxy_http_version 1.1;
proxy_read_timeout 900s;
proxy_buffering off;
}
}