CGI bin for generating a QR code
Rust 63.3%
HTML 36.7%
8 1 0

Clone this repository

https://tangled.org/eldridge.cam/cgi-qr
git@knot.eldridge.cam:eldridge.cam/cgi-qr

For self-hosted knots, clone URLs may differ based on your setup.

README.md

CGI QR#

Drop this thing into cgi-bin and have a QR generator up in minutes.

The path (with leading / dropped) is used as the QR data, with the query string used to provide various options. Refer to main.rs for that info.

An example configuration for Caddy, with caddy-cgi installed:

{
    order cgi after file_server
}

example.com {
    file_server / {
        root /var/www/cgi-qr
        index index.html
    }
    cgi /* /usr/local/cgi-bin/cgi-qr
}