updatefile

command module
v0.0.0-...-7a0fa8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 17 Imported by: 0

README

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:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL