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 52931bd8a9 change project name 1 month ago
hosting instructions 4 months ago
.gitignore /rand command is working 4 months ago
LICENSE add license 3 months ago
Makefile progress 4 months ago
README.md change project name 1 month ago
list.txt instructions 4 months ago
main.c oops 3 months ago
mongoose.c First commit 4 months ago
mongoose.h First commit 4 months ago

README.md

Webringd

  • A webring daemon written with the Mongoose web server library

Dependencies

  • 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.