Fixed typos and improved docs
This commit is contained in:
parent
911418aac5
commit
b43a9155f1
1 changed files with 17 additions and 17 deletions
34
doc/index.md
34
doc/index.md
|
@ -6,37 +6,37 @@
|
|||
|
||||
## Lainsafe installation
|
||||
|
||||
Just put index.html and upload.cgi in a http directory. I use fcgi to run my cgi scripts. So it's what i recommend. To install fcgi on debian, run: ```# apt install fcgiwrap```
|
||||
Just put index.html and upload.cgi in a HTTP directory. I use fcgi to run my cgi scripts. So it's what i recommend. To install fcgi on Debian, run: ```# apt install fcgiwrap```
|
||||
|
||||
here's an example configuration for lainsafe, using nginx.
|
||||
|
||||
~~~
|
||||
server
|
||||
{
|
||||
server_name lainsafe.foo.tld;
|
||||
server_name lainsafe.foo.tld;
|
||||
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
client_max_body_size 100m; # max size 10MBs, change 10 to 100 in upload.cgi in line 30
|
||||
root /var/www/lainsafe;
|
||||
|
||||
root /var/www/lainsafe;
|
||||
|
||||
location ~ \.cgi$ {
|
||||
gzip off;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
fastcgi_index index.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/lainsafe/$fastcgi_script_name;
|
||||
}
|
||||
location ~ \.cgi$ {
|
||||
gzip off;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
fastcgi_index index.cgi;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/lainsafe/$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
~~~
|
||||
|
||||
## lainsafecli
|
||||
|
||||
lainsafecli is a command line interface for lainsafe. It can be used in whatever that runs perl. Instalation is simple: if you're running debian install the libwww-perl package. If you are not running debian, search for that package in your repositories. Or use ```# cpan -i LWP::UserAgent```
|
||||
lainsafecli is a command line interface for lainsafe. It can be used in whatever that runs Perl. Installation is simple: if you're running Debian install the libwww-perl package. If you are not running Debian, search for that package in your repositories. Or use ```# cpan -i LWP::UserAgent```
|
||||
|
||||
### Installation
|
||||
|
||||
I haven't made a package for lainsafecli yet. So instalation is basically:
|
||||
I haven't made a package for lainsafecli yet. So installation is basically:
|
||||
|
||||
~~~
|
||||
# wget https://raw.githubusercontent.com/qorg11/lainsafe/master/lainsafecli \
|
||||
|
@ -56,7 +56,7 @@ These parameters are located in the line 34 of lainsafecli.
|
|||
```$DEFAULT_SERVER``` the server that will be used if --server is not
|
||||
specified.
|
||||
```$DISPLAY_ASCII``` By default is true, change to 0 if you don't want
|
||||
the Lain ascii art to appear when you upload a file.
|
||||
the Lain ASCII art to appear when you upload a file.
|
||||
|
||||
the most "official" lainsafe instance is <https://lainsafe.delegao.moe>.
|
||||
|
||||
|
@ -124,4 +124,4 @@ files through ```lainsafecli```.
|
|||
Only one parameter: ```$MAX_SIZE``` specify, in megabytes, the max size of files allowed. So for example. If you want to set 100MBs as max size . ```$MAX_SIZE``` would be like this: ```$MAX_SIZE = 1024*1024*100```
|
||||
|
||||
If someone tries to upload a file bigger than 100MBs. It will return
|
||||
Max size for a file is 100 MBs, then, uploda.cgi will die.
|
||||
Max size for a file is 100 MBs, then, upload.cgi will die.
|
||||
|
|
Loading…
Add table
Reference in a new issue