No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dennis Joachimsthaler 3f3b0a33e4 changed the md options to ones that allow using scripts and html without it messing up the quotes 1 year ago
.gitignore changed the md options to ones that allow using scripts and html without it messing up the quotes 1 year ago
README.md Updated Readme with text 2 years ago
main.go changed the md options to ones that allow using scripts and html without it messing up the quotes 1 year ago
template.html template externalized 2 years ago

README.md

oldschoolcool

Oldschoolcool is a tiny webserver designed to be something akin to Gopher.
That is: You publish pages with text by dropping them in a folder and leaving the rest up to the publishing service.

It’s basically almost like an Apache or Nginx server with “autoindex” on except it uses markdown (.md) for content pages instead of html. It also always (can be disabled) shows the the index on any content page so you can quickly navigate to other destinations.

Usage

Currently, oldschoolcool uses two different folders to serve from: The first will be autoindexed like normal, the second will be used if a file doesn’t exist in the first, so it’s kind of like an overlayfs. This makes it possible to use static files (like css) but not make them clutter the directory tree.

The options you can use are as follows:

  • -datadir: Sets the drectory to look for the program data. This is currently only the template (template.html)
  • -listen: What IP and port to listen to (0.0.0.0 for any ipv4)
  • -log: Turns on rudimentary logging
  • -path: Path to the “frontend” file system
  • -path2: Path to the “backend”, hidden file system