-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminio.conf
69 lines (63 loc) · 2.57 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
http {
# server {
# listen 80;
# server_name 192.168.1.100;
# access_log /dev/null;
# error_log /dev/null;
#
# }
server {
listen 80;
server_name minio.nextsysadmin.local;
access_log /var/log/nginx/minio-access.log ;
error_log /var/log/nginx/minio-error.log notice;
#ssl_certificate /etc/ssl/certs/CERTIFICATE.crt;
#ssl_certificate_key /etc/ssl/certs/KEY.key;
ssl_protocols TLSv1.2;
gzip on;
gzip_min_length 1000;
gzip_comp_level 5;
gzip_proxied any;
gzip_vary on;
gzip_types
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/json
application/xml
application/rss+xml
font/x-woff
application/font-woff2
application/vnd.ms-fontobject
image/svg+xml
image/jpeg
image/x-icon
image/png
image/gif;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504 http_429 non_idempotent;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
client_max_body_size 25m;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $server_name;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
add_header X-Frame-Options "SAMEORIGIN";
add_header LB "Node1";
proxy_pass http://minio_ui;
}
}
upstream minio_ui {
least_conn;
server 192.168.1.12:9001 max_fails=4 fail_timeout=60s;
server 192.168.1.12:8001 max_fails=4 fail_timeout=60s;
server 192.168.1.63:9001 max_fails=4 fail_timeout=60s;
server 192.168.1.63:8001 max_fails=4 fail_timeout=60s;
}
}