Add Usage section to readme.

This commit is contained in:
tastytea 2020-07-01 12:07:38 +02:00
parent 85273e1b0d
commit 4e1dbfc8bd
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 23 additions and 0 deletions

View File

@ -19,6 +19,29 @@
*{project}* turns form data into JSON and opens a pull request on
link:https://schlomp.space/FediBlock/data[FediBlock/data].
== Usage
.nginx config
[source,nginx]
--------------------------------------------------------------------------------
# […]
location /add {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1;
fastcgi_param SCRIPT_FILENAME /usr/bin/fediblock-backend;
fastcgi_param HOME "/var/lib/nginx"; # When I didn't set it, HOME was /root.
}
--------------------------------------------------------------------------------
.Generate SSH key
[source,shell]
--------------------------------------------------------------------------------
sudo -u nginx ssh-keygen -t ed25519 -f ~nginx/.local/share/fediblock-backend/ssh_id
--------------------------------------------------------------------------------
Don't forget to add the key to the data repo.
== Install
=== From source