From de108087f215fd175b126ac8ef7474dab3af3676 Mon Sep 17 00:00:00 2001 From: Heiner Tholen Date: Sun, 27 Nov 2022 17:50:12 +0100 Subject: [PATCH] Dockerfile + feed2toot config --- Dockerfile | 14 ++++++++++++++ feed2toot.ini | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 Dockerfile create mode 100644 feed2toot.ini diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a9b6996 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.10.5-slim-bullseye + +ENV LANG C.UTF-8 +ENV PYTHONPATH $PYTHONPATH:/srv +ENV PATH="/root/.local/bin:${PATH}" + +WORKDIR /srv + +RUN apt-get update -qq + +RUN pip install --default-timeout=200 --upgrade pip==22.3.1 && \ + pip install feed2toot==0.17 && \ + pip install wheel==0.38.4 + diff --git a/feed2toot.ini b/feed2toot.ini new file mode 100644 index 0000000..9e292bb --- /dev/null +++ b/feed2toot.ini @@ -0,0 +1,36 @@ +[mastodon] +instance_url=https://mastodon.pub.solar +; Here you need the two files created by register_feed2toot_app +user_credentials=/srv/feed2toot_usercred.txt +client_credentials=/srv/feed2toot_clientcred.txt +; Default visibility is public, but you can override it: +; toot_visibility=unlisted + +[cache] +cachefile=/var/lib/feed2toot/feed2toot.db +cache_limit=10000 + +[lock] +lock_file=/var/lock/feed2toot.lock +lock_timeout=3600 + +[rss] +uri=https://news.ycombinator.com/rss +; uri_list=/etc/feed2toot//rsslist.txt +toot={title} {link} +; toot_max_len=125 +; title_pattern=Open Source +; title_pattern_case_sensitive=true +; no_uri_pattern_no_global_pattern=true +; ignore_ssl=false + +[hashtaglist] +; several_words_hashtags_list=/etc/feed2toot/hashtags.txt +; no_tags_in_toot=false + +[feedparser] +; accept_bozo_exceptions=true + +[media] +; custom=/var/lib/feed2toot/media/logo.png +