host

command
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Host is a basic file server suitable for hosting static websites using portal.

Host serves index.html in place of the directory name and optionally serves directory listing pages.

You can password protect a directory using HTTP basic auth by placing a .passwords file in the directory containing username:password_hash lines for each authorized user. Passwords in subdirectories are recursively added on top of the list from the parent directory. Password hashes must be compatible with ask.systems/daemon/tools.DefaultCheckPassword. To generate a password hash you can use host -hash_password. Be careful about who has write access to .passwords!

Install host standalone with:

go install ask.systems/daemon/host@latest

You can also use host as a subcommand of the combined ask.systems/daemon binary.

Directories

Path Synopsis
Embedhost lets you run the host binary main function inside another program
Embedhost lets you run the host binary main function inside another program

Jump to

Keyboard shortcuts

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