This is the rendering server software for verfassungsbooks servers.
- Install git & openssl & gcc & gcc-multilib:
apt install git openssl gcc gcc-multilib
- Create a unprivileged user:
adduser verfassungsbooks
- Log in as new user:
su verfassungsbooks
- Install rustup and cargo:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Relogin:
exit
su verfassungsbooks
- cd to home:
cd ~
- Clone respository:
git clone https://github.com/Verfassungsblog/Verfassungsbooks-Rendering-Server.git
- cd to new directory:
cd Verfassungsbooks-Rendering-Server/
- Build project:
cargo build --release
Go to the latest build and download the verfassungsbooks-rendering-server-bundled.tar.gz.
- Install the dependencies for chromium (ubuntu example):
apt install bubblewrap libnss3-tools libatk-bridge2.0-0 libcups2 libxcomposite-dev libxrandr2 libxdamage1 libasound2t64 libcairo2 libasound2t64 libgbm1 libpango-1.0-0
Either run setup.sh inside rendering-envs (which will take a few hours), or download the prebuilt environment here (open the latest success build and download the artifact.
Copy the default config config/default.toml to config/local.toml and change if necessary. Copy the mtls certificates to an appropriate location and set paths in config. See the verfassungsbooks repository for hints for CA & Certificate creation.