A minimal webring service written in C with the Mongoose embedded webserver library.
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.
 
 
tfasano1 995b7bce4f redirect to random when site not found 1 week ago
hosting instructions 2 weeks ago
.gitignore /rand command is working 2 weeks ago
Makefile progress 2 weeks ago
README.md small fixes 2 weeks ago
list.txt instructions 2 weeks ago
main.c redirect to random when site not found 1 week ago
mongoose.c First commit 2 weeks ago
mongoose.h First commit 2 weeks ago

README.md

Ringoose

  • A webring written with the Mongoose webserver library

Dependencies (should be installed)

  • gcc
  • libc6-dev

Installation

  • clone this repo in /var/www or wherever really
  • make
  • use the systemd file to run it
  • setup the nginx file to have it proxied

Usage

  • edit list.txt with the webring members domain names (https:// not needed)
  • edit the port number or protocol in main.c

Pages

This program produces three main pages for use as links:

  • /next -- Go to the next site in the webring (from whichever site you are linked from).

  • /prev -- Go to the previous site in the webring.

  • /rand -- Go to a random site in the webring.

  • / -- The index should be served as a static folder directly by nginx.

If linked to /next or /prev without a HTTP referer in the webring, they will function like /rand.

TODO

  • support tab spaced name field in list.txt
  • develop hugo shortcodes to build index.html