diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-01-09 23:11:23 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-01-10 00:16:44 +0100 |
commit | c3b84b06ff16aa0ae280538b08ee4912c3d215a8 (patch) | |
tree | c43aea6da3eeb10e696d794f7407cbae91920ed2 /config.yml.example | |
parent | 5b3f0f96b7e345a82f0d963ddef1dd4569465145 (diff) | |
download | feed2imap-go-c3b84b06ff16aa0ae280538b08ee4912c3d215a8.tar.gz feed2imap-go-c3b84b06ff16aa0ae280538b08ee4912c3d215a8.tar.bz2 feed2imap-go-c3b84b06ff16aa0ae280538b08ee4912c3d215a8.zip |
Specify cookies in feed config to use in all HTTP requests.
Diffstat (limited to '')
-rw-r--r-- | config.yml.example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.yml.example b/config.yml.example index 90e5370..e933ade 100644 --- a/config.yml.example +++ b/config.yml.example @@ -71,6 +71,7 @@ options: # - both: Use both # - fetch: Ignore the body delivered by the feed and instead fetch the linked website. # It may be advisable to set `include-images` to false in that mode to avoid unexpected large mails. + # To fetch something behind a paywall, you can specify authentication cookies with the `cookies` option. body: default # Disable a feed. Beats commenting ;) disable: false @@ -90,6 +91,11 @@ options: # Items of a feed may be filtered. In general there is no real use in specifying this globally. # For full information about this feature, visit https://github.com/Necoro/feed2imap-go/wiki/Detailed-Options. item-filter: 'Author.Name != "Weirdo"' + # Specify cookies that are to be sent with every HTTP request to the configured targets. + # Mostly useful to fetch stuff behind a paywall by sending authentication cookie. + cookies: + - name: authentication + value: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2N... ## Feeds # Each feed must have a name, and a URL or Exec argument. The name must be unique. |