Commit Graph

348 Commits

Author SHA1 Message Date
jqzhang
3cd109a75b bugfix json output & 2021-02-18 14:01:21 +08:00
jqzhang
3fb3e07d62 bugfix json output & 2021-02-18 10:32:26 +08:00
jqzhang
d503095f95 bugfix big file upload the same file with callback 2021-01-12 10:08:59 +08:00
Phani Rithvij
ef08d8ce26 fix some markdown issues 2020-11-18 11:28:45 +08:00
jqzhang
75e7d76f0c Merge branch 'master' of https://github.com/sjqzhang/go-fastdfs 2020-09-24 22:36:31 +08:00
jqzhang
5f2b41d5e1 modify download filename by parameters 2020-09-23 14:32:02 +08:00
Jrohy
41f004ba8b 优化gofastdfs.service 2020-08-06 22:08:07 +08:00
jqzhang
08af0d309a remove enterprise description 2020-07-14 11:02:04 +08:00
jqzhang
78bd97281a add status check peer_id host 2020-07-03 11:45:04 +08:00
Gavin-cn
e348f8e1d9 为了方便基于Docker部署增加peers和peerId的环境变量获取。
修改3806-3822行,增加`GO_FASTDFS_PEER_ID`和`GO_FASTDFS_PEERS`用来传递对应的`peerId`和`peers`对应的参数,方便基于容器和k8s进行集群部署。
```go
        var peerId string
	if peerId = os.Getenv("GO_FASTDFS_PEER_ID"); peerId == "" {
		peerId = fmt.Sprintf("%d", server.util.RandInt(0, 9))
	}
	if !server.util.FileExists(CONST_CONF_FILE_NAME) {
		var ip string
		if ip = os.Getenv("GO_FASTDFS_IP"); ip == "" {
			ip = server.util.GetPulicIP()
		}
		peer := "http://" + ip + ":8080"
		var peers string
		if peers = os.Getenv("GO_FASTDFS_PEERS"); peers == ""{
			peers = peer
		}
		cfg := fmt.Sprintf(cfgJson, peerId, peer, peers)
		server.util.WriteFile(CONST_CONF_FILE_NAME, cfg)
	}
```
2020-06-29 16:19:25 +08:00
jqzhang
0c7be5bad8 add check host 2020-06-18 13:58:29 +08:00
jqzhang
b403dedecd add check host 2020-06-18 13:39:43 +08:00
jqzhang
a07d53e906 modify Readme 2020-06-13 10:28:12 +08:00
jqzhang
aeef0844fc bugfix file not close for tmp file 2020-06-09 21:34:08 +08:00
jqzhang
cebaa107a2 bugfix file close for windows 2020-05-11 13:06:23 +08:00
jqzhang
a23368161f bugfix sync file fail when support_group_manage is true 2020-05-10 20:41:21 +08:00
jqzhang
c02e3af8cb add community compare with enterprise description 2020-05-10 20:11:36 +08:00
jqzhang
f7a55a2ad8 bugfix close tmp file 2020-04-22 09:54:50 +08:00
jqzhang
b68156a143 bugfix close tmp file 2020-04-22 09:35:45 +08:00
jqzhang
e3e79794cb add enable_image_resize options 2020-04-18 13:44:58 +08:00
jqzhang
c2ac4ea126 bugfix static dir 2020-04-17 14:43:09 +08:00
jqzhang
d7ccbd7f28 reset static for community 2020-04-16 16:13:54 +08:00
jqzhang
ba4e2a6ae1 go-bindata -o asset.go -fs -prefix static static/... 2020-04-16 16:04:45 +08:00
jqzhang
d73e1cd808 add static 2020-04-15 18:38:29 +08:00
jqzhang
b7bd0255c5 support backup metadata to redis 2020-04-12 18:00:47 +08:00
jqzhang
ef8f503871 add redis support 2020-04-12 09:03:49 +08:00
jqzhang
c1124aefaa support https 2020-04-09 12:16:21 +08:00
FulltimeLove
9d2c182325 解决adminIP不能使用ip的问题
len(strings.Split(v, "/")) > 0    在string 不为空时,恒为true
2020-03-24 19:26:57 +08:00
jqzhang
a84dff1c7e add static file 2020-03-21 11:11:37 +08:00
FulltimeLove
833b32d509 paic when file stat error
当 outFile.Stat()  出现 错误时, fi会被赋值为nil , 导致后面使用fi.Size()时 引起panic
2020-03-20 12:30:43 +08:00
jqzhang
f75fe4a7dd bugfix testing 2020-03-19 11:29:33 +08:00
jqzhang
eba2cfca81 admin_ips support cidr for exmaple: 10.10.0.0/16 2020-03-19 10:25:38 +08:00
jqzhang
3f30f6cf0e when admin_ips contains 0.0.0.0 all permit 2020-03-18 17:21:14 +08:00
jqzhang
def83c2397 add dfsclient 2020-03-13 10:24:49 +08:00
jqzhang
cb49c71c8f uniform upload file return format 2020-03-06 14:22:24 +08:00
tonyp
bd61eba620 修改统一返回 2020-03-06 12:30:43 +08:00
tonyp
5997119a09 修改统一返回 2020-03-06 12:30:43 +08:00
tonyp
6e45032391 add docker-compose 文件 2020-03-06 12:30:43 +08:00
jqzhang
de266395ba add video guide 2020-03-02 11:00:18 +08:00
jqzhang
76ba8c6c15 modify readme add experience 2020-01-21 11:14:48 +08:00
jqzhang
48efa702de modify readme add experience 2020-01-21 11:11:51 +08:00
jqzhang
2cd0fc9255 modify control build.sh 2019-12-30 21:46:41 +08:00
jqzhang
d35d2be9e3 bugfix backup file 2019-12-30 09:29:17 +08:00
jqzhang
af09ab2148 bugfix custom path error 2019-12-19 23:03:24 +08:00
jqzhang
1759952542 support big file sence and path 2019-12-04 15:58:04 +08:00
jqzhang
97a4484be6 deny tus download when enable auth 2019-11-28 14:04:08 +08:00
jqzhang
969b8d2b55 bug fix list_dir file 2019-11-22 10:32:12 +08:00
liulei
70288e0d77 修复同文件上传的file/filename参数带了路径引起的报错, fix #134 2019-11-08 13:53:35 +08:00
jqzhang
60cdd11d61 add checkauth param 2019-10-15 14:38:19 +08:00
jqzhang
916432151c nginx big cluster 2019-10-14 19:45:26 +08:00