2020-04-19 14:39:34 +00:00
|
|
|
|
# Lainsafe
|
|
|
|
|
### simple file upload.
|
|
|
|
|
|
|
|
|
|
### Installation:
|
|
|
|
|
|
|
|
|
|
1. Configure your webserver to run CGI
|
|
|
|
|
2. If running nginx, set ```client_max_body_size``` to the max size of
|
|
|
|
|
the file
|
|
|
|
|
2. There you go.
|
|
|
|
|
|
2020-10-20 13:48:23 +00:00
|
|
|
|
For more detailed information, look at the
|
|
|
|
|
[manpage](https://codeberg.org/qorg11/lainsafe/src/branch/master/doc/lainsafe.md)
|
|
|
|
|
|
2020-04-19 14:39:34 +00:00
|
|
|
|
## lainsafecli
|
|
|
|
|
|
2020-06-29 20:47:44 +00:00
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
|
|
#### Arch
|
2020-07-11 03:33:41 +00:00
|
|
|
|
[AUR - `lainsafecli`](https://aur.archlinux.org/packages/lainsafecli/)
|
2020-04-19 14:39:34 +00:00
|
|
|
|
|
|
|
|
|
### lainsafecli configuration
|
|
|
|
|
|
|
|
|
|
edit the file with your favorite text editor and change these
|
|
|
|
|
variables:
|
|
|
|
|
|
|
|
|
|
```$DEFAULT_SERVER``` This is the server where lainsafecli will try to
|
|
|
|
|
upload the files.
|
|
|
|
|
|
|
|
|
|
```$DISPLAY_ASCII``` By default 1, change to 0 if you don't want the
|
|
|
|
|
Lain ascii art to appear when you upload a file.
|
|
|
|
|
|
|
|
|
|
### Command line arguments
|
|
|
|
|
|
|
|
|
|
```--server``` If given, it will be used instead of $DEFAULT_SERVER
|
|
|
|
|
|
|
|
|
|
```--help``` Displays a simple help message and exits.
|
|
|
|
|
|
2020-06-06 23:59:20 +00:00
|
|
|
|
```--file``` the file you want to upload (useless in newer versions)
|
2020-04-19 14:39:34 +00:00
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
|
|
~~~
|
2020-11-18 18:00:23 +00:00
|
|
|
|
$ lainsafecli --server https://lainsafe.delegao.moe sicp.png
|
2020-11-18 17:58:58 +00:00
|
|
|
|
_..-- ----- --.._
|
2020-04-19 14:39:34 +00:00
|
|
|
|
,-'' `-.
|
|
|
|
|
, \
|
|
|
|
|
/ \
|
|
|
|
|
/ ` . \
|
|
|
|
|
' / || ;
|
|
|
|
|
; ^/| |/ | |
|
|
|
|
|
| /v /\`-'v√\'-|\ ,
|
|
|
|
|
| /v` ,--- ---- .^.| ;
|
|
|
|
|
: | /´@@`, ,@@`\ | ;
|
|
|
|
|
' | '. @@ / \@@ / |\ |;
|
|
|
|
|
| ^| ----- --- | \/||
|
|
|
|
|
` |` | /\ /
|
|
|
|
|
\ \ |/ |,
|
|
|
|
|
' ; \ /| |
|
|
|
|
|
` \ -- / | |
|
|
|
|
|
` `. .-' | /
|
|
|
|
|
v,- `;._ _.; | |
|
|
|
|
|
`'`\ |-_ -^'^'| |
|
|
|
|
|
------ |/
|
|
|
|
|
|
2020-11-18 17:58:58 +00:00
|
|
|
|
https://lainsafe.delegao.moe/files/160572227741108.png
|
2020-04-19 14:39:34 +00:00
|
|
|
|
~~~
|
2020-07-05 00:16:34 +00:00
|
|
|
|
|
2020-08-30 14:55:45 +00:00
|
|
|
|
# Automatically removing files
|
|
|
|
|
|
|
|
|
|
Try [lsd](https://git.kalli.st/czar/lsd) (lainsafe daemon)
|
|
|
|
|
|
|
|
|
|
usage: `lsd <path> days`
|
|
|
|
|
|
|
|
|
|
lsd wont work with versions before 8a557ca
|
|
|
|
|
|
2020-10-19 20:59:14 +00:00
|
|
|
|
# but perl sux!!
|
|
|
|
|
|
2020-11-30 09:13:00 +00:00
|
|
|
|
No problem, [use this
|
|
|
|
|
then](https://ech1.github.io/blog/servers/phpfilesafe/index.html)
|
|
|
|
|
|
|
|
|
|
You don't have to use lainsafecli either, you can just use curl:
|
|
|
|
|
|
|
|
|
|
`curl -F"file=@file" <server>`
|
|
|
|
|
|
|
|
|
|
or just use [hlainsafecli](https://codeberg.org/suguivy/hlainsafecli)
|
2020-08-30 14:55:45 +00:00
|
|
|
|
|
|
|
|
|
|
2020-07-05 00:16:34 +00:00
|
|
|
|
# Donate
|
|
|
|
|
|
|
|
|
|
Thanks!
|
|
|
|
|
|
|
|
|
|
[Liberapay](https://liberapay.com/qorg11)
|
|
|
|
|
|
2020-07-11 20:30:11 +00:00
|
|
|
|
Bitcoin: bc1qghl6f27dpgktynpvkrxte2s3gm9pcv8vlwuzum
|
2020-10-20 13:48:23 +00:00
|
|
|
|
Monero: 47QTumjtqJabbo1s9pLDdXeJarLVLfs1AaEcbi1xrEiV852mqcbe5AHLNXTk7tH9MscxcxQDfJQnvH5LpxvfgwSJQZ3zbS6
|