cjimti / iotweb

Small (4MB), fast static web server for IoT devices. Written in Go

Home Page:https://github.com/txn2/asws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UPDATE: This is an archived Project - For an updated version of iotweb, see https://github.com/txn2/asws, asws is a small fast static web server written in Go.

GoDoc Go Report Card Docker Image Size

IoT Web Server

A very small web server written in Go for static sites served on devices such as the Raspberry Pi. Uses bunyan logging.

Env

Uses environment variables for configuration. The following are default values, override where needed.

  • export IOTWEB_BASEPATH=/
  • export IOTWEB_STATICPATH=www
  • export IOTWEB_PORT=8080
  • export IOTWEB_FSAPIPATH=yes
  • export IOTWEB_FSAPIPATH=fsapi/

Try

docker run -it --rm -p 8080:8080 cjimti/iotweb:1.1.1

for arm base devices use:

docker run -it --rm -p 8080:8080 cjimti/iotweb:armhf-1.1.1

Development

Uses goreleaser:

Install goreleaser with brew (mac): brew install goreleaser/tap/goreleaser

Build without releasing: goreleaser --skip-publish --rm-dist --skip-validate

About

Small (4MB), fast static web server for IoT devices. Written in Go

https://github.com/txn2/asws

License:MIT License


Languages

Language:Go 89.4%Language:Dockerfile 5.4%Language:HTML 5.1%