On setting up 3chen.org with Kareha
As of 20250627, 3chen.org has become actually alive. I had in prior over the period of 20250427 -> 20250528 had an OpenBSD to learn about the operating systems and write some basic board software. I eventually decided to decommission that server and opt for premade Japanese Warez. Setting it up per the information provided was quick - and the nginx configuration:
server { server_name 3chen.org; ... root /var/www/3chen.org; # /index.html -> / rewrite ^/index.html$ / permanent; rewrite ^/$ /index.html last; # /kareha.pl/.../ -> /.../ rewrite ^/kareha.pl/([0-9\#\/]+) /$1 redirect; rewrite ^/([0-9\#\/]+) /kareha.pl/$1 last; include .../3chen.org/bans; location ~ \.(css|js|png)$ { add_header Cache-Control "max-age=86400"; } location ~ (captcha|admin|kareha)\.pl { add_header Cache-Control "max-age=0; must-revalidate; no-cache"; include fastcgi_params; fastcgi_pass unix:/run/fcgiwrap.socket; } location / { add_header Cache-Control "max-age=0; must-revalidate; no-cache"; index kareha.pl; } location = /config.pl { deny all; } }
Simple enough. Kareha is easy, databaseless, and old. It was developed over 2004~ -> 2009 as far as I can tell (Using 20 year old web software is generally frowned upon.) The configuration process was straight forward and I do not have any significant notes. I removed the "last 50/100" system in preference for just load everything.
Copyright © emil $CURRENT_YEAR Public Domain