update env and service files

This commit is contained in:
joe 2025-12-25 10:29:33 -08:00
parent 9cc5307c59
commit 2693412c63
4 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/target
blogdor.db
secrets
.env

View file

@ -7,7 +7,8 @@ Requires=network-online.target
Type=exec
User=blogdor
Group=blogdor
ExecStart=/var/lib/blogdor/blogdor -e /var/lib/blogdor/.env
EnvironmentFile=/var/lib/blogdor/.env
ExecStart=/var/lib/blogdor/blogdor
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512

8
sample-dot-env Normal file
View file

@ -0,0 +1,8 @@
DATABASE_URL=sqlite://blogdor.db
DATABASE_FILE=./blogdor.db
ZULIP_TOKEN=a_token
ZULIP_URL=http://localhost:8000
BLOGDOR_TO_ZULIP_EMAIL=blogdor-incoming-bot@zulip-host
ZULIP_TO_BLOGDOR_EMAIL=blogdor-outgoing-bot@zulip-host
ZULIP_CHANNEL=35
BLOGDOR_TOKEN=another_token

View file

@ -304,9 +304,10 @@ async fn check_feed(
feed_url: url.clone(),
title: post
.title
.clone()
.map(|t| t.content)
.unwrap_or("Blogdor Says: NO POST TITLE".to_string()),
published: post.published.unwrap_or(now),
published: post.posted().unwrap_or(now),
received: now,
feed_description: feed.description.to_owned().map(|d| d.content),
body: post.content.and_then(|c| {