-
Notifications
You must be signed in to change notification settings - Fork 24
/
minio.conf
51 lines (42 loc) · 1.33 KB
/
minio.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
43
44
45
46
47
48
49
50
51
upstream minioserver {
server 192.168.1.6:9000;
server 192.168.1.7:9000;
}
server {
listen 80;
server_name media.wildfirechat.cn;
root html;
index index.html index.htm index.php;
proxy_buffering off;
client_max_body_size 2048M;
sendfile on;
keepalive_timeout 3600;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://minioserver;
}
}
server {
listen 443 ssl;
server_name media.wildfirechat.cn;
root html;
index index.html index.htm;
proxy_buffering off;
client_max_body_size 2048M;
sendfile on;
keepalive_timeout 3600;
ssl_certificate cert/a.pem;
ssl_certificate_key cert/a.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location /{
proxy_set_header Host $http_host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://minioserver;
}
}