Skip to content

Instantly share code, notes, and snippets.

@vividsnow
Created August 18, 2014 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vividsnow/7e27a3450473f6a38a4b to your computer and use it in GitHub Desktop.
Save vividsnow/7e27a3450473f6a38a4b to your computer and use it in GitHub Desktop.
service static w/ user/pass via plack
cpanm U Plack
# later
plackup -MU -MPlack::Builder -e 'builder { enable "Auth::Basic", authenticator => sub {$_[0].$_[1] eq 'a0b0'}; Plack::App::Directory->new->to_app }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment