Whoops
[lainsafe.git] / README.MD
blob8916010d8439cb117785b14a547824080c22c663
1 # Lainsafe
2 ### simple file upload.
4 ### Installation:
6 1. Configure your webserver to run CGI
7 2. If running nginx, set ```client_max_body_size``` to the max size of
8    the file
9 2. There you go.
11 ## lainsafecli
13 ```lainsafecli``` is a simple interface for lainsafe. 
15 ### lainsafecli configuration
17 edit the file with your favorite text editor and change these
18 variables:
20 ```$DEFAULT_SERVER``` This is the server where lainsafecli will try to
21 upload the files.
23 ```$DISPLAY_ASCII``` By default 1, change to 0 if you don't want the
24 Lain ascii art to appear when you upload a file.
26 ### Command line arguments
28 ```--server``` If given, it will be used instead of $DEFAULT_SERVER
30 ```--help``` Displays a simple help message and exits.
32 ```--file``` the file you want to upload
34 ### Example
36 ~~~
37 $ lainsafecli --server https://lainsafe.delegao.moe --file sicp.png
40                 
41            _..-- ----- --.._
42         ,-''                `-.
43        ,                       \
44       /                         \
45      /        ` .                \
46     '         /  ||               ;
47     ;      ^/|   |/        |      |
48     |      /v    /\`-'v√\'-|\     ,
49     |   /v` ,---      ---- .^.|    ;
50     :  |   /´@@`,     ,@@`\  |    ;
51     '  |  '. @@ /     \@@ /  |\  |;
52     | ^|    -----      ---   | \/||
53     ` |`                     | /\ /
54     \    \                   |/ |,
55     ' ;   \                 /|  |
56       `    \      --       / |  |
57       `     `.          .-'  |  /
58        v,-    `;._   _.;     | |
59           `'`\ |-_      -^'^'| |
60                   ------     |/
61           
62 https://lainsafe.delegao.moe/files/EWwEnBHk.png
64 ~~~