Dockerfile + feed2toot config
This commit is contained in:
parent
782ed95b4c
commit
de108087f2
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -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
|
||||||
|
|
36
feed2toot.ini
Normal file
36
feed2toot.ini
Normal file
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue