update env and service files
This commit is contained in:
parent
9cc5307c59
commit
2693412c63
4 changed files with 13 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
/target
|
/target
|
||||||
blogdor.db
|
blogdor.db
|
||||||
secrets
|
secrets
|
||||||
|
.env
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ Requires=network-online.target
|
||||||
Type=exec
|
Type=exec
|
||||||
User=blogdor
|
User=blogdor
|
||||||
Group=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
|
TimeoutStopSec=5s
|
||||||
LimitNOFILE=1048576
|
LimitNOFILE=1048576
|
||||||
LimitNPROC=512
|
LimitNPROC=512
|
||||||
|
|
|
||||||
8
sample-dot-env
Normal file
8
sample-dot-env
Normal 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
|
||||||
|
|
@ -304,9 +304,10 @@ async fn check_feed(
|
||||||
feed_url: url.clone(),
|
feed_url: url.clone(),
|
||||||
title: post
|
title: post
|
||||||
.title
|
.title
|
||||||
|
.clone()
|
||||||
.map(|t| t.content)
|
.map(|t| t.content)
|
||||||
.unwrap_or("Blogdor Says: NO POST TITLE".to_string()),
|
.unwrap_or("Blogdor Says: NO POST TITLE".to_string()),
|
||||||
published: post.published.unwrap_or(now),
|
published: post.posted().unwrap_or(now),
|
||||||
received: now,
|
received: now,
|
||||||
feed_description: feed.description.to_owned().map(|d| d.content),
|
feed_description: feed.description.to_owned().map(|d| d.content),
|
||||||
body: post.content.and_then(|c| {
|
body: post.content.and_then(|c| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue