Static update file server
simple https server for update files.
Install
Or you can install from source using Go:
$ go install github.com/lockval/updatefile@latest
Usage
To serve the "./root" directory on https://127.0.0.1:8080:
$ updatefile -ssl example.com
To use a different addr specify with the -addr
flag:
$ updatefile -ssl example.com -addr 127.0.0.1:5000
To serve a different directory use the -root
flag:
$ updatefile -ssl example.com -root public
To change pwd use the -pwd
flag:
$ updatefile -ssl example.com -pwd 654321
Options
-addr
Defines the addr to serve. (Defaults to 127.0.0.1:8080).
-root
Defines the directory to serve. (Defaults to root directory).
-pwd
validate password. (Default:123456).
-ssl
ssl file name. (Default:example.com).
update file demo
To upload file:
To get file:
To del file:
To make PUT counts:
To get file info: