updated the docs

This commit is contained in:
(≧◡≦) 2025-02-23 13:59:40 +01:00
parent 47065f1c07
commit ec299f915f
4 changed files with 40 additions and 28 deletions

View file

@ -1,4 +1,4 @@
Copyright $CURRENT_YEAR qorg11.
Copyright $CURRENT_YEAR SURAGU Enterprises
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are

View file

@ -7,6 +7,7 @@
* Written in perl
* Can be used as pastebin
* Easy installation (just a simple daemon and use a reverse proxy)
* Does not bully Tor users ;)
1. install the dependencies using `cpan`:
@ -21,6 +22,31 @@ git clone https://git.suragu.net/sosa/sakisafe
cd sakisafe/http
./sakisafe.pl daemon -m production
~~~
You can also use `hypnotoad` or `morbo` to run the thing:
~~~
morbo -l http://*:3000 sakisafe.pl.
hypnotoad sakisafe.pl # This will daemonize the thing in port 8080.
~~~
2.2. In FreeBSD, you can use the rc script located in
http/scripts/sakisafe_bsd to create a sakisafe service. The service is
loaded by the user "saki", whose home is `/usr/local/share/sakisafe`:
~~~bash
mkdir -p /usr/local/share/sakisafe
cp -r http/* /usr/local/share/sakisafe
cp http/init/sakisafe_bsd /usr/local/etc/rc.d
touch /var/run/sakisafe.pid
chmod 777 /var/run/sakisafe.pid # How to fix this? Please tell me
service sakisafe enable
service sakisafe start
~~~
Please contribute more init scripts for sakisafe!!! (for systemd,
openbsd...)
2.3. You can also use Docker. I am not a Docker advocate. But apparently
running "docker build-x" or something like that just works.
3. Create a 'f' directory in the directory sakisafe will run with
`mkdir f`. Make sure that the user which will run sakisafe.pl can
@ -42,8 +68,8 @@ server {
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_set_header X-Real-IP $remote_addr; # Important for logging!
proxy_set_header X-Forwarded-for $remote_addr; # Idem
proxy_pass http://127.0.0.1:3000$request_uri;
}
}
@ -64,6 +90,7 @@ other file upload services). It also supports file uploading via scp
* Highly configurable
* Lightweight
* If using OpenBSD, it will run `pledge()` for security reasons.
* As far as I know, runs in any *NIX operating system.
## Installation
@ -83,6 +110,9 @@ Use `bmake` instead of `make`, and you'll also need these deps:
![](https://repology.org/badge/vertical-allrepos/sakisafe.svg)
TODO: Add the thing to Debian repositories ;)
# Contributing
Just create a pull request in GitHub or send a diff file.

View file

@ -1,10 +1,9 @@
* Known lainsafe instances
* Known sakisafe instances
In this document i'll add all the lainsafe instance i know :)
In this document i'll add all the sakisafe instance i know :)
- https://lainsafe.delegao.moe
- https://lainsafe.duckdns.org (don't use it, old lainsafe version
and a bit incompatible with lainsafecli)
- https://lainsafe.kalli.st
- http://lainsafe.kallist4mcluuxbjnr5p2asdlmdhaos3pcrvhk3fbzmiiiftwg6zncid.onion/ (onion mirror)
- http://gnaumuq27fagoo24pb2mmf25rdic7lrthq2fsfolgrpzycc2hwga.b32.i2p/
Feel free to add more. I do not know about many others.
- https://ss.suragu.net
- https://files.getimiskon.xyuz
-

View file

@ -1,17 +0,0 @@
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: bmake
run: bmake