From 6e78335f5db37cc476c7e1812d73121aad868472 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 21 May 2023 18:03:08 +0200 Subject: [PATCH] Add readflow node --- 20230520112339-readflow.org | 145 ++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 20230520112339-readflow.org diff --git a/20230520112339-readflow.org b/20230520112339-readflow.org new file mode 100644 index 0000000..9899c14 --- /dev/null +++ b/20230520112339-readflow.org @@ -0,0 +1,145 @@ +:PROPERTIES: +:ID: af021596-3d07-42bf-9131-0c203ac1c26f +:mtime: 20230521180253 +:ctime: 20230520112339 +:END: +#+title: readflow + +* Introduction +Sauvegarde de page web pour lecture offline. + +* Installation +** API +*** Build +#+BEGIN_SRC shell +cd /opt/ +git clone https://github.com/ncarlier/readflow.git readflow +cd readflow +git submodule init +git submodule update +make +#+END_SRC +*** Configuration +**** Préparation des variables d'environnement +Contenu du fichier ~env~: +#+BEGIN_SRC shell +export READFLOW_DB="postgres://:@localhost/readflow" +export READFLOW_LISTEN_ADDR="localhost:8010" +export READFLOW_LISTEN_METRICS= +export READFLOW_AUTHN="https://login.adrien.run/realms/readings" +export READFLOW_PUBLIC_URL="https://readflow.adrien.run" +export READFLOW_SECRET_SALT="" +export READFLOW_BLOCK_LIST= +export READFLOW_BROKER_URI= +export READFLOW_WEB_SCRAPER_URL= +export READFLOW_IMAGE_PROXY_URL= +export READFLOW_AVATAR_PROVIDER= +export READFLOW_SECRETS_ENGINE_PROVIDER= +export READFLOW_SENTRY_DSN= +export READFLOW_POCKET_CONSUMER_KEY= + +export REACT_APP_API_ROOT="/api" +export REACT_APP_AUTHORITY="https://login.adrien.run/realms/readings" +export REACT_APP_CLIENT_ID="readflow" +export REACT_APP_REDIRECT_URL="https://readflow.adrien.run/login" +#+END_SRC +**** Substitution des variables du fichier de configuration +#+BEGIN_SRC shell +source ./env +envsubst < ./readflow.toml > ./config.toml +#+END_SRC +*** Exécution +#+BEGIN_SRC shell +./release/readflow -config ./config.toml +#+END_SRC +Ou +#+BEGIN_SRC shell +cat >/lib/systemd/system/readflow.service <