Openbsd /
Fiche
(redirected from Fiche.Install)
Installation
$ git clone https://github.com/solusipse/fiche.git $ cd fiche $ doas make $ doas make install $ doas adduser paste $ doas usermod -G daemon paste $ doas mkdir /var/www/htdocs/ircnow/paste $ doas chown www:daemon /var/www/htdocs/ircnow/paste $ doas chmod g+w /var/www/htdocs/ircnow/paste $ doas -u paste fiche -o /var/www/htdocs/ircnow/paste/ -d paste.ircnow.org -s 20 -S -p 7777
pass in log quick proto tcp to {$IP4 $IP6} port 7777 $Flush #pastebin
get a tls cert for paste.ircnow.org
in /etc/httpd.conf:
server "paste.ircnow.org" { listen on egress tls port 443 tls { certificate "/etc/ssl/paste.ircnow.org.fullchain.pem" key "/etc/ssl/private/paste.ircnow.org.key" } location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } location "*~" { block drop } root "/htdocs/ircnow/paste/" directory { index "index.txt" } }
Cronjob
$ doas crontab -e -u paste
Add this line:
*/5 * * * * fiche -o /var/www/htdocs/ircnow/paste/ -d paste.ircnow.org -s 20 -S -p 7777
Troubleshooting
WARNING: the argument -B 1048576 causes segfaults.