AndrianBdn / http-password-files

Very simple HTTP server with password protection (node)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Very simple HTTP server with password protection

This is very old code (from 2013) that serves some files via HTTP with simple password protection.

I've recently modernized it by switching to newer node (some of ES6 features) and docker. It still 'Hello World' level.

  • Logs file downloads
  • Logs invalid logins
  • Plain password authorization using HTML form

Known issues:

  • No HTTP range requests
  • No HTTP HEAD request
  • No tests (it just works)

Additionally (in real life) this thing is protected by HTTPS using nginx (not included)

About

Very simple HTTP server with password protection (node)

License:MIT License


Languages

Language:JavaScript 96.1%Language:Makefile 3.9%