Skip to content

Releases: mjpclab/go-http-file-server

Version 1.21.1

27 Sep 09:07

Choose a tag to compare

Main Changes


主要变更

Version 1.20.4

23 May 16:08

Choose a tag to compare

Main changes

  • archive: stop walking tree node when client disconnected #50
  • minor improvements and fixes

Version 1.20.3

03 Apr 13:58

Choose a tag to compare

minor improvements and fixes


次要改进和修复

Version 1.20.2

17 Jan 15:40

Choose a tag to compare

Main changes

  • add env var GHFS_LOG_QUEUE_SIZE to config log queue size for each file
  • minor improvements and fixes

主要变更

  • 添加环境变量 GHFS_LOG_QUEUE_SIZE 来配置每个日志文件的队列大小
  • 次要改进和修复

Version 1.20.1

18 Oct 14:08

Choose a tag to compare

Minor improvements and fixes.


次要改进和修复。

Version 1.20.0

27 Sep 14:18

Choose a tag to compare

Breaking Change to request param

Before:

GET /dir?download shows simple page.

GET /dir?downloadfile shows simple page, and add download param to files.

GET /file?download download a file instead of displaying its content.

GET /file?downloadfile download a file instead of displaying its content.

After:

GET /dir?simple shows simple page.

GET /dir?download add download param to files.

GET /dir?simpledownload shows simple page, and add download param to files.

GET /file?download download a file instead of displaying its content.

Version 1.19.1

14 Aug 12:45

Choose a tag to compare

Minor improvements and fixes.


次要改进和修复。

Version 1.19.0

07 Aug 16:41

Choose a tag to compare

Main changes

  • reload TLS certificate files when received signal SIGHUP, useful when certificate renewed
  • focus child item when goes to parent directory
  • fix: skip outputting gzip-compressed content if it is a Range request
  • add request host to access log
  • minor fixes and improvements

Breaking change

API: request JSON data by header Accept: application/json

Usage for requesting JSON response changed.

Before:

curl 'http://server/path?json'

After:

curl -H 'Accept: application/json' 'http://server/path'

主要变更

  • 当收到信号SIGHUP时,重新加载TLS证书文件,在证书续期时很有用
  • 进入父目录时设置子项焦点
  • 修复:如果是Range请求,输出时跳过gzip压缩
  • 将请求主机添加到访问日志
  • 次要修复和改进

破坏性变更

API: 通过头Accept: application/json标识请求JSON数据

请求JSON响应的用法已发生变化。

之前:

curl 'http://server/path?json'

之后:

curl -H 'Accept: application/json' 'http://server/path'

Version 1.18.1

31 May 13:25

Choose a tag to compare

  • show logged in username
  • added --archive-user and --archive-dir-user

Version 1.18.0

12 May 10:18

Choose a tag to compare

Main changes

Added several options to control if directory index is available:

--index <url-path> ...
--index-user <separator><url-path>[<separator><allowed-username>...] ...
    Set url paths(and sub paths) that allows to index files of a directory.
    --index defaults to "/".
    Set to "" to disable index.
--index-dir <fs-path> ...
--index-dir-user <separator><fs-path>[<separator><allowed-username>...] ...
    Similar to --index, but use file system path instead of url path.

主要变更

添加了数个选项来控制目录列表的可见性:

--index <URL路径> ...
--index-user <分隔符><URL路径>[<分隔符><允许的用户名>...] ...
    设置允许索引目录的URL路径(及子路径)。
    --index默认值为"/"。
    设为""来禁用索引。
--index-dir <文件系统路径> ...
--index-dir-user <分隔符><文件系统路径>[<分隔符><允许的用户名>...] ...
    与--index类似,但指定的是文件系统路径,而不是URL路径。