Serve: Basic password protection

Created on 12 Oct 2016  路  10Comments  路  Source: vercel/serve

When using list, you might want to supply a password to protect your directory or static site.

This is especially important when using now-serve to serve a staging environment that should not be reachable by every person on the internet.

good for beginners

All 10 comments

@leo I'm working on a PR, should this be in the form of a micro-plugin or can I use http-auth?

This is a cool idea. Maybe with envs? HTTP_BASIC_USER and HTTP_BASIC_PASSWORD ?

Yeah, I thought the same. Or with a HTTP_BASIC_AUTH string: username:password or username:password_hash

@guidobouman are you still working on this? I was thinking about taking a stab at it, but I don't want to jump in if you're still planning to do it 馃槃

Have a go! I can assist if you're running into any issues.

Cool, thanks!

Implemented this as just more CLI flags. Let me know what you guys think.

Hi, since the rewrite I can't see this option anywhere. Is it still possible to add a basic protection when using serve?

@paulintrognon Yes, but it seems like the only way now is to do it by yourself. See how here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xiyuyizhi picture xiyuyizhi  路  5Comments

Olexiy665 picture Olexiy665  路  3Comments

ghost picture ghost  路  7Comments

malinda1986 picture malinda1986  路  6Comments

nermin99 picture nermin99  路  3Comments