From 730e8edbfea7aab6499b9915c64f8dd2e695b0f9 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Fri, 7 Aug 2020 19:52:46 +0200 Subject: [PATCH] manpage for lainsafe --- doc/lainsafe.1 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 doc/lainsafe.1 diff --git a/doc/lainsafe.1 b/doc/lainsafe.1 new file mode 100644 index 0000000..9f93562 --- /dev/null +++ b/doc/lainsafe.1 @@ -0,0 +1,44 @@ +.\"Manpage for lainsafe +.TH lainsafe 1 +.SH NAME +lainsafe \- Simple file upload + +.SH DESCRIPTION + +lainsafe is a simple file upload server written in Perl + CGI. + +It runs in a Web server (i.e. nginx) with a CGI handler +(i.e. fcgiwrap) + +.SH INSTALLATION + +You can use any web server for running lainsafe. However, nginx is +recommended. The following configuration should work for nginx: + +.I /etc/nginx/sites-enabled/lainsafe.conf +.in +4n +.EX +server +{ + server_name lainsafe.foo.tld; + + listen 80; + listen [::]:80; + client_max_body_size 100m; # max size 100MBs, change 10 to 100 + # in upload.cgi in line 30 + 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; + } +} +.EE + +The document root will be /var/www/lainsafe (be sure to change it in +.I root +and +.I fastcgi_param SCRIPT_FILENAME if you're going to use another directory