Skip to content

Hyper-minimal low-latency webserver for serving SPAs and static content based on fasthttp.

License

Notifications You must be signed in to change notification settings

radiosilence/nano-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nano-web

Hyper-minimal single binary gzipping webserver for serving static content based on labstack echo-server. Based on alpine.

Serves from /public

Config as ENV

  • PORT The port to listen on. Defaults to 80
  • SPA_MODE when set to 1 it only serves up /public/assets`` and all other requests go to /public/index.html`

Example Dockerfile

FROM antihero/nano-web:latest
WORKDIR /
COPY ./dist /public/
ENV PORT=8081
ENV SPA_MODE=1
EXPOSE $PORT
CMD ["/serve"]

About

Hyper-minimal low-latency webserver for serving SPAs and static content based on fasthttp.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 82.3%
  • Makefile 11.7%
  • Shell 3.0%
  • Dockerfile 3.0%