From 54bbd2e9d716a18542431e04c3f829a39146dfce Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 24 Sep 2026 08:24:32 +0100 Subject: update rss-aggregator config (now 'scag') --- roles/scag/templates/header.html | 30 ++++++++++++++++++++++++++++++ roles/scag/templates/nginx/feed.conf | 4 ++++ roles/scag/templates/scag.toml | 16 ++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 roles/scag/templates/header.html create mode 100644 roles/scag/templates/nginx/feed.conf create mode 100644 roles/scag/templates/scag.toml (limited to 'roles/scag/templates') diff --git a/roles/scag/templates/header.html b/roles/scag/templates/header.html new file mode 100644 index 0000000..20ea0f1 --- /dev/null +++ b/roles/scag/templates/header.html @@ -0,0 +1,30 @@ + + + diff --git a/roles/scag/templates/nginx/feed.conf b/roles/scag/templates/nginx/feed.conf new file mode 100644 index 0000000..6f650ba --- /dev/null +++ b/roles/scag/templates/nginx/feed.conf @@ -0,0 +1,4 @@ +location /feed { + root {{ http_files_dir }}/feed; + try_files $uri $uri.xml $uri.rss $uri.atom $uri.rss.xml $uri.html $uri/index.html $uri.php $uri/index.php =404; +} diff --git a/roles/scag/templates/scag.toml b/roles/scag/templates/scag.toml new file mode 100644 index 0000000..9eafa6c --- /dev/null +++ b/roles/scag/templates/scag.toml @@ -0,0 +1,16 @@ +subscriptions_path = "subscriptions.txt" + +[feed] +title = "Stuff that Joe Carstairs wants to read" +description = "Stuff that Joe Carstairs wants to read" +url = "https://joeac.net/feed" + +[output] +outfile_rss = "{{ http_files_dir }}/feed/{{ feed_rss_path }}" +outfile_html = "{{ http_files_dir }}/feed/{{ feed_html_path }}" +produce_formats = ["html", "rss"] +max_age = 31 + +[output.html] +head = "{{ feed_html_head }}" +header = "{{ feed_html_header }}" -- cgit v1.2.3