diff --git a/docker-compose.yml b/docker-compose.yml index 6f184e6..2f6c5fd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: rss2newsletter: - image: rss2newsletter + image: robertvanbarlingen/rss2newsletter container_name: rss2newsletter restart: unless-stopped volumes: diff --git a/rss2newsletter b/rss2newsletter index 365b2ff..2bf7d46 100755 --- a/rss2newsletter +++ b/rss2newsletter @@ -244,7 +244,7 @@ class rss2newsletter: json_data = { "name": name, "subject": name, - "lists": [1], + "lists": [int(self.config["LISTMONK"]["LIST_ID"])], "content_type": "richtext", "body": body, "messenger": "email", diff --git a/rss2newsletter.conf b/rss2newsletter.conf index 093155f..3d7e3ef 100644 --- a/rss2newsletter.conf +++ b/rss2newsletter.conf @@ -1,9 +1,9 @@ [FEED] # Full URL to your website's feed -URL = YOUR_FEED_URL +URL = https://edgeofdusk.com/newsletter/rss.xml # How often to check for new feed entries in seconds -POLL_INTERVAL = 300 +POLL_INTERVAL = 30 # rss2newsletter uses this file to keep track of new feed entries PROCESSED_ENTRIES_FILE = processed_entries.txt @@ -11,17 +11,17 @@ PROCESSED_ENTRIES_FILE = processed_entries.txt [LISTMONK] # Full URL to listmonk server -URL = http://localhost:9000 +URL = https://listmonk.edgeofdusk.com # Credentials -USERNAME = YOUR_USERNAME -PASSWORD = YOUR_PASSWORD +USERNAME = robert +PASSWORD = MmIhr4THeBCh5fUv # The ID of your "rss2newsletter" list (create this list in listmonk) -LIST_ID = 1 +LIST_ID = 3 # Use this for testing, campaigns will be created but no emails will be sent out (one is true, zero is false) -DRY_RUN = 1 +DRY_RUN = 0 [NEWSLETTER]