yomimono / url-shortener

Example URL shortener MirageOS unikernel using Chamelon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what is this?

This is an example project demonstrating the use of chamelon as a storage module in a MirageOS unikernel. It is a simple web application that accepts a path and a URL, and redirects any requests to itself at a path to that URL.

There are a few hardcoded special paths which the webapp doesn't accept as keys, and on lookup will serve hardcoded content.

layout

  • config.ml specifies information for which devices, software, and additional information the unikernel needs.
  • le.ml is logic for getting certificates via Let's Encrypt at server start and after the expiration period.
  • shortener.ml is the unikernel start point and web application logic.
  • justfile contains commands I use frequently to set up the backing store, set up bridge networking, and start the unikernel.

About

Example URL shortener MirageOS unikernel using Chamelon.


Languages

Language:OCaml 100.0%