root/ " - files"

init the directories (currently hardcoded, due to this beeing a lazy hack):

mkdir -p /var/www/captcha/file
mkdir -p /var/www/captcha/private

run the single threaded server:

guile -L . -e main -s main.scm

or the concurrent server if you have fibers installed:

guile -L . -e main-fibers -s main.scm

populate the booru store:

guile -L . -e populate-touhou -s ./plugin/captcha-booru

setup nginx to serve the files:

server {
    listen 80;
    server_name "captcha.local";
    root /var/www/captcha/;

    location /file {
	alias /var/www/captcha/file;
    location /private {
	deny all;
    location / {
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

setup /etc/hosts for development by appending: captcha.local

This page was generated with git-to-web.