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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?