Skip to content

wtnb75/httpcgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpcgi is...

  • HTTP Server
  • supports legacy CGI program
  • can run WASI binary with CGI interface
  • only CGI
    • without static file serving
    • without reverse proxy
    • ...

install

  • go install github.com/wtnb75/httpcgi@latest
  • supports WASI
    • with wasmer runtime: go install -tags wasmer github.com/wtnb75/httpcgi@latest
    • with wasmtime runtime: go install -tags wasmtime github.com/wtnb75/httpcgi@latest
    • with wazero runtime: go install -tags wazero github.com/wtnb75/httpcgi@latest
  • supports Docker
    • go install -tags docker github.com/wtnb75/httpcgi@latest

run

  • httpcgi -l :8080

options

Usage:
  httpcgi [OPTIONS]

Application Options:
  -v, --verbose                                      log verbose
  -q, --quiet                                        log quiet
  -l, --listen=[host]:port
      --protocol=tcp/unix
  -p, --prefix=url-prefix
  -b, --base-dir=dirname
  -s, --suffix=.ext
      --json-log
      --runner=name
  -V, --version
      --opentelemetry=[stdout|otlp|otlp-http]

Help Options:
  -h, --help                                         Show this help message

docker

  • docker run ghcr.io/wtnb75/httpcgi [options]...

docker compose

About

serve legacy CGI

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors