Skip to content

Commit 2aba2b0

Browse files
authored
feat(minio): 增加ftp选项 (#18)
* feat(minio): 增加ftp选项 * fix(minio-ftp): 被动模式 * feat(minio-ftp): 配置文件增加默认值
1 parent acd1ed1 commit 2aba2b0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.env.default

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ MINIO_PASSWORD='' # xxxxxxxxxxxxxxxx
109109
# MINIO_ACCESSKEY/SECRETKEY, 默认使用帐号&密码, 也可以在minio的管理后台创建一组新的KEY
110110
MINIO_ACCESSKEY=${MINIO_USER} # xxxxxxxxxxxxxxxx
111111
MINIO_SECRETKEY=${MINIO_PASSWORD} # xxxxxxxxxxxxxxxxx
112-
112+
# MINIO ftp功能
113+
MINIO_FTP_PORT=8021
114+
MINIO_FTP_PASSIVE_PORT=8523-8529
113115
#---------------------------------------------
114116

115117
## 邮件

minio/compose.ftp.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
minio:
3+
ports:
4+
# 原生端口是9000和9001, 规避RTP服务端口冲突, 所以-1000
5+
- ${MINIO_FTP_PORT:-8021}:${MINIO_FTP_PORT:-8021}
6+
- ${MINIO_FTP_PASSIVE_PORT:-8523-8529}:${MINIO_FTP_PASSIVE_PORT:-8523-8529}
7+
# 被动模式外网IP问题, https://github.com/minio/minio/issues/17457
8+
command: server /data --console-address ":${MINIO_PORT_HTTP:-8001}" --address ":${MINIO_PORT:-8000}" --ftp="address=${SERVER_IP_PUBLIC}:${MINIO_FTP_PORT:-8021}" --ftp="passive-port-range=${MINIO_FTP_PASSIVE_PORT:-8523-8529}"

0 commit comments

Comments
 (0)