srvdir

Expose any folder as an HTTPS fileserver

  • 所有者: inconshreveable/srvdir
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

srvdir - Expose any directory as a secure public file server

Homepage

http://srvdir.net

Project status

srvdir is no longer developed, supported or maintained by its author, except to ensure that the project continues to compile. The contribution policy has the following guidelines:

  1. All issues against this repository will be closed unless they demonstrate a crash or other complete failure of srvdir's functionality.
  2. No new features will be added. Any pull requests with new features will be closed. Please fork the project instead.
  3. Pull requests fixing existing bugs or improving documentation are welcomed.

The public srvdir.net service that used to run is no longer available. It was shut down in April, 2016.

Usage

srvdir allows you to turn any directory into a secure public file server. You can think of it like Python's SimpleHTTPServer, but with a TLS-secured public URL. It is similar to an on-demand public Dropbox folder.

srvdir is extremely simple to use. Serve the files in the current directory:

srvdir

Serve the files in a different directory:

srvdir /path/to/directory

Serve the files in two directories:

srvdir /path/to/directory /path/to/other/directory

Give the public url a custom name:

srvdir example:/path/to/directory

Require a username/password to access the file server:

srvdir -auth="user:password" /path/to/directory

Putting it all together, let's serve the directory at /usr/local on ulocal.srvdir.net and also serve the current directory at current.srvdir.net. Let's also make sure you need to enter a username and password as well:

srvdir -auth="root:12345" ulocal:/usr/local current:.

That's it!

Code

Most of the code from srvdir is either a modified version of the standard library's http.FileServer or from the go-tunnel library: https://github.com/inconshreveable/go-tunnel

Future Plans

I'd love to add native support to serve the files over SFTP/FTP as well as HTTP.

Licenese

Apache

主要指标

概览
名称与所有者inconshreveable/srvdir
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证Other
所有者活动
创建于2014-01-22 11:53:28
推送于2016-04-09 03:34:33
最后一次提交2016-04-08 18:25:28
发布数1
最新版本名称0.1 (发布于 )
第一版名称0.1 (发布于 )
用户参与
星数379
关注者数23
派生数27
提交数27
已启用问题?
问题数10
打开的问题数1
拉请求数3
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?