Turns form data into JSON and opens a pull request.
https://fediblock.org/
cmake | ||
src | ||
tests | ||
.clang-format | ||
.drone.yml | ||
.editorconfig | ||
.gitignore | ||
AUTHORS | ||
CMakeLists.txt | ||
CODE_OF_CONDUCT.adoc | ||
CONTRIBUTING.adoc | ||
CREDITS | ||
LICENSE | ||
README.adoc |
fediblock-backend
fediblock-backend turns form data into JSON and opens a pull request on FediBlock/data.
Table of Contents
Usage
nginx config
# […]
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
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
Dependencies
Get sourcecode
git clone https://schlomp.space/FediBlock/backend.git
Compile
mkdir -p build && cd build
cmake ..
cmake --build . -- --jobs=$(nproc --ignore=1)
CMake options:
-
-DCMAKE_BUILD_TYPE=Debug
for a debug build. -
-DWITH_TESTS=YES
if you want to compile the tests. -
-DWITH_CLANG-TIDY=YES
to check the sourcecode with clang-tidy while compiling. -
One of:
-
-DWITH_DEB=YES
if you want to be able to generate a deb-package. -
-DWITH_RPM=YES
if you want to be able to generate an rpm-package.
-
To create a deb or rpm package, run make package
after compiling.