Skip to content

Commit c2dc44c

Browse files
changes hardcoded listmonk list ID to the list ID from the config file
1 parent b3e4fa6 commit c2dc44c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
rss2newsletter:
3-
image: rss2newsletter
3+
image: robertvanbarlingen/rss2newsletter
44
container_name: rss2newsletter
55
restart: unless-stopped
66
volumes:

rss2newsletter

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class rss2newsletter:
244244
json_data = {
245245
"name": name,
246246
"subject": name,
247-
"lists": [1],
247+
"lists": [int(self.config["LISTMONK"]["LIST_ID"])],
248248
"content_type": "richtext",
249249
"body": body,
250250
"messenger": "email",

rss2newsletter.conf

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
[FEED]
22
# Full URL to your website's feed
3-
URL = YOUR_FEED_URL
3+
URL = https://edgeofdusk.com/newsletter/rss.xml
44

55
# How often to check for new feed entries in seconds
6-
POLL_INTERVAL = 300
6+
POLL_INTERVAL = 30
77

88
# rss2newsletter uses this file to keep track of new feed entries
99
PROCESSED_ENTRIES_FILE = processed_entries.txt
1010

1111

1212
[LISTMONK]
1313
# Full URL to listmonk server
14-
URL = http://localhost:9000
14+
URL = https://listmonk.edgeofdusk.com
1515

1616
# Credentials
17-
USERNAME = YOUR_USERNAME
18-
PASSWORD = YOUR_PASSWORD
17+
USERNAME = robert
18+
PASSWORD = MmIhr4THeBCh5fUv
1919

2020
# The ID of your "rss2newsletter" list (create this list in listmonk)
21-
LIST_ID = 1
21+
LIST_ID = 3
2222

2323
# Use this for testing, campaigns will be created but no emails will be sent out (one is true, zero is false)
24-
DRY_RUN = 1
24+
DRY_RUN = 0
2525

2626

2727
[NEWSLETTER]

0 commit comments

Comments
 (0)