diff --git a/LICENSE b/LICENSE index 0cc3ecd..39dfce1 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/README.md b/README.md index c50782d..0262286 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/SERVERS.org b/SERVERS.org index f08e160..9426cc8 100644 --- a/SERVERS.org +++ b/SERVERS.org @@ -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 + - diff --git a/c-cpp.yml b/c-cpp.yml deleted file mode 100644 index 9fc39af..0000000 --- a/c-cpp.yml +++ /dev/null @@ -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