Skip to content

Tiny go static server. Set an auth token, push your site.zip and it starts serving it instantly.

Notifications You must be signed in to change notification settings

xoconoch/statikserve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Statikserve

Serve a static site publicly and upload new builds via a secret token. Set the AUTH_TOKEN env variable in the compose file and push your static site as follows:

curl -X POST -H "Authorization: Bearer $AUTH_TOKEN" -F "file=@site.zip" http://localhost/_theres_no_way_you_have_this_in_your_static_site

The site.zip file should contain the dist/ dir. So generating it should look something like zip -r site.zip dist/

About

Tiny go static server. Set an auth token, push your site.zip and it starts serving it instantly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages