Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.25 KB

CC0
To the extent possible under law, 1000TurquoisePogs has waived all copyright and related or neighboring rights to this repository of silly-file-server. This work is published from: United States.

Getting Started Instructions:

  1. Clone
  2. Run node file-server.js

Restricting access:

  1. Make a passwords.json file in the root directory
  2. Add the name of a file or directory within the JSON
  3. Add a string as a password It could look like:
{
  "98": "123",
  "95-tan.jpg": "4567"
}

Which would allow access to a file/folder called 98, and a file/folder called 95-tan.jpg under the circumstance someone accessed the URLs with the ?pass query parameter. The set of passwords the server uses is determined by reading this file every 5 minutes, so adding or removing takes 5 minutes.

Accessing restricted URLs: Use the query parameter ?pass=PASSWORD with whatever PASSWORD was given to you by the owner.

Archives: If you use the query parameter ?zip=1, the requested file or folder will be sent as a zip. The zip is written to disk in an area that will expire within 1 hour.

Expiration: TODO