: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 <