Simple Static Web Service
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Simple Static Web Service

This is a super simple static web service that includes lets encrypt support. It's meant to be installed in Ubuntu (see the script in /etc). Which will create a service user, a service, allow it to run on port 80 and 443 and log to syslog. You can of course just run it by itself.

It will redirect all GET/HEAD requests from 80 to 443 using the autocert handler. If you want to add custom handler funcs to the HTTPS service, add them in the addRoutes function.


go get
cd $GOHOME/src/
vi main.go // replace hostname with your hostname
cd etc
chmod +x && ./ (will prompt for passwd)