lainsafe/doc/lainsafecli.md

81 lines
2.3 KiB
Markdown
Raw Normal View History

2020-10-20 13:48:23 +00:00
NAME
====
lainsafecli - Command line interface for lainsafe
SYNOPSIS
========
2020-11-14 22:40:41 +00:00
lainsafecli *\[\--tor \| \--i2p\] \[\--server\]* file
2020-10-20 13:48:23 +00:00
DESCRIPTION
===========
*lainsafecli* uploads a file to a given lainsafe server. This server may
be specified with the *\--server* flag. If *\--server* is not given. The
2020-11-14 22:40:41 +00:00
content of the variable *\$DEFAULT_SERVER* will be used instead. This
2020-10-20 13:48:23 +00:00
variable is in the script. In the official packages. this is
https://lainsafe.delegao.moe
OPTIONS
=======
2020-11-14 22:40:41 +00:00
*\--server* Sets the server to use. If it is not given \$DEFAULT_SERVER
2020-10-20 13:48:23 +00:00
will be used instead.
*\--help* Displays a simple help message and exits. This also specify
which server will be used if no *\--server* is given.
*\--tor* Uses tor to upload the file. This requires
*LWP::Protocol::socks* to be installed on your system. You also need to
have tor running at 127.0.0.1:9050 If LWP::Protocol::socks is not
installed, \--tor is ignored, so don\'t try it
2020-11-14 22:40:41 +00:00
*\--i2p* Routes the traffic through I2P. This uses the HTTP proxy (which
is normally in port 4444). So *LWP::Protocol::socks* is not necessary.
2020-10-20 13:48:23 +00:00
*\--get-response* If the server returned an error, \--get-response will
make lainsafecli print the content, so it can help you find out why
lainsafecli isn\'t working!
CONFIGURATION
=============
there are configuration values in *lainsafecli* line 34.
2020-11-14 22:40:41 +00:00
*\$DISPLAY_ASCII* If true (Any number but 0), It will display an ASCII
2020-10-20 13:48:23 +00:00
art if no error returned.
2020-11-14 22:40:41 +00:00
*\$STORE_LINKS* If true, lainsafecli will store the links on a file,
specified by *\$LINKS_FILE*
2020-10-20 13:48:23 +00:00
TROUBLESHOOTING
===============
2020-10-20 14:00:20 +00:00
whatever is not running lainsafe. But works in the browser.
-----------------------------------------------------------
2020-10-20 13:48:23 +00:00
This only happens with https lainsafe instances. To solve that. Make
sure that the module *LWP::UserAgent::https* is installed. You can
install it using *cpan(1)*
2020-10-20 14:00:20 +00:00
HTTP 413 is returned
--------------------
2020-10-20 13:48:23 +00:00
The file you specified is too big for the instance. Try using another
instance. By default lainsafe supports up to 100MBs. But this can be
configured in lainsafe **AND** the web server. If the file exceds
whatever your **server** allows. lainsafe can set another limit. If the
lainsafe limit is less than the server limit. lainsafe will return its
own error message.
AUTHORS
=======
qorg11 \<qorg\@vxempire.xyz\>
LICENSE
=======
GPLv3 or later.