🔐▲ A simple basic HTTP Auth Proxy for Vercel, ideal for adding simple password protection to staging applications.
This project uses node-http-proxy inside a serverless function to add basic password protection to ORIGIN site via HTTP Auth, requiring no code change to the ORIGIN deployment. This is designed to add simple password protection to deployments during the UAT stage.
ORIGIN
: The URL of your stage deployment, best to point it to a custom domain assigned to the UAT branch.USERNAME
: The username required to login.PASSWORD
: The password required to login.
- Redeploy app using the updated ENV variables.
- Run
yarn install
to install the require packages. - Update
.env
file with values required. - Run
now dev
.
The deployment at https://simple-basic-http-auth-proxy-vercel.now.sh adds password protection around Google search.
Username: williamli
Password: password