Go 语言 http/https 文件服务器

serve

Repo: https://github.com/Akagi201/serve

Simple http server for localhost development

Features

  • [x] Use gohttp as http framework.
  • [x] Static http file server.
  • [x] Support https.
  • [ ] Support http2.
  • [ ] Support WebSocket.
  • [ ] Support browser-sync like features.

Build

  • docker: docker build -t serve .
  • go build -o serve

Install

  • go get github.com/Akagi201/serve

Run

  • ./serve -h
  • openssl genrsa -out server.key 2048
  • openssl req -new -x509 -key server.key -out server.crt -days 365
  • sudo ./serve --http=0.0.0.0:8888 --domains=akagi201.org
已邀请:

要回复问题请先登录注册