Skip to content

charliemitchell/basic-auth-static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-auth-static-server

Usage npx basic-auth-static-server /path/to/your/static-website

Everything is based on environment variables. This works out of the box with heroku too!

No environment variables are needed for the static server to work.

In order to configure and use Basic Auth you need to set the following environment variables.

BASIC_AUTH_USERNAME

BASIC_AUTH_PASSWORD

STATIC_INDEX_FILE is optional, default is index.html

PORT is optional, default is 3000


Options:

--single Enables SPA mode by always serving your index file.

About

A static asset server that can implement Basic Auth conditionally based on environment vaiables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors