Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 357 Bytes

File metadata and controls

23 lines (20 loc) · 357 Bytes

Printerfacts

$ pacman -S nginx openbsd-netcat
$ cat /etc/nginx/conf.d/printer.conf
server {
    ...
    location ^/(print|printer|printers)/ {
        add_header Content-Type text/plain;
        proxy_pass http://127.0.0.1:9991;
    }
}
$ ./print &
$ curl localhost/printers
Printers live longer when they stay indoors.