yapserve

command module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

yapserve - http static server based on YAP

Build Status GitHub release Language Language GoDoc

yapserve start a http server that serves static files.

Usage:

yapserve [-host <host>] <scheme>

Here scheme is used to create a http.FileSystem object. It can be:

  • <localPath> (means it is a local http.FileSystem)
  • "s3:<bucketUrl>" (means it is a s3 http.FileSystem)
  • "kodo:<bucket>?<accessToken>" (means it is a kodo http.FileSystem provided by qiniu.com. How to generate a kodo url? See the kodourl tool below)

kodourl

kodourl is a tool to generate a kodo url like kodo:<bucket>?<accessToken>.

Usage:

kodourl <bucket> <accessKey> <secretKey>

Before running kodourl, you should create a environment variable named YAPSERVE_KEY. You can generate a long random text and then assign to it. For example:

export YAPSERVE_KEY=<LongRandomText>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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