JiaHe

相遇即是缘

Minio

docker-compose.yml
version: '3'
services:
minio:
image: minio/minio:latest
container_name: myminio
restart: always
privileged: true
ports:
- 9000:9000
- 9001:9001
volumes:
- ./data:/data
- ./config:/root/.minio
environment:
MINIO_ROOT_USER: "root"
# 长度大于等于8,字母数字混合
MINIO_ROOT_PASSWORD: "admin123"
# 指定web访问端口和数据存储路径
command: server --console-address ':9001' /data
minio.conf
server {
listen 80;
listen 443 ssl;

access_log /var/log/nginx/minio_access.log;
error_log /var/log/nginx/minio_error.log;

server_name minio.jiahe.com;
ssl_certificate /etc/nginx/conf.d/ssl/out/jiahe.com/jiahe.com.crt;
ssl_certificate_key /etc/nginx/conf.d/ssl/out/jiahe.com/jiahe.com.key.pem;
ssl_protocols TLSv1.1 TLSv1.2;
ssl_ciphers '!aNULL:kECDH+AESGCM:ECDH+AESGCM:RSA+AESGCM:kECDH+AES:ECDH+AES:RSA+AES:';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
charset utf-8;
client_max_body_size 100m;

location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_connect_timeout 300;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
chunked_transfer_encoding off;
proxy_pass http://192.168.56.31:9001/;
}

}