35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
# Scheduler configuration
|
|
max_posts_per_pull = 100
|
|
pull_by = "day"
|
|
subreddits = [
|
|
# name, minimum upvotes
|
|
("pcgaming", 50),
|
|
("gadgets", 10),
|
|
("Nightreign", 100),
|
|
("CuratedTumblr", 100),
|
|
("196", 100),
|
|
("PoliticalCompassMemes", 100),
|
|
("meirl", 100),
|
|
("me_irl", 100),
|
|
("Fauxmoi", 100),
|
|
("NoFilterNews", 100),
|
|
("linux", 100),
|
|
("linux4noobs", 100),
|
|
("selfhosted", 100),
|
|
("HomeServer", 100),
|
|
("homelab", 100),
|
|
("NonPoliticalTwitter", 100),
|
|
("all", 1000)
|
|
]
|
|
max_age_days = 30
|
|
max_age_seconds = max_age_days * 24 * 60 * 60
|
|
other_posts_cutoff = 1 #subreddits with this many unread posts or fewer are merged to /r/other
|
|
|
|
# Webpage configuration
|
|
posts_per_page_load = 50
|
|
|
|
db_dir = "/reddit/db"
|
|
media_dir = "/reddit/media"
|
|
db_file = f"{db_dir}/data.db"
|
|
yars_dir = "/app/YARS"
|