diff options
| author | Joe Mou <dev@mou.fo> | 2025-04-04 19:46:03 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2025-04-09 00:04:36 -0400 |
| commit | a453a7a062bcc6677a7a527032c3309dff2195a5 (patch) | |
| tree | a0e1eff53ab081c0c0ec07831fc94d543b1ccbd9 | |
| parent | c8feb7e24e2241d79fb17aa3fb8ee587b03c6973 (diff) | |
Try minimal danb/rss aggregator
Probably won't keep this, but playing with OCI containers and XSLT were
interesting.
Converting Feedly OPML to feeds.txt:
$ nomad @xmlstarlet select -T -t -m '//outline[@type="rss"]' -v ./@xmlUrl -o $'\t' -v ./@title -o $'\t#' -v ../@text -o $'\n' Downloads/feedly-093988c0-b9a0-4bb7-97dc-6946128b509e-2025-03-30-d63a70cb-archive/subscriptions.opml | awk -F'\t' -v OFS=' ' '{gsub(/ /, "_", $2); gsub(/ /, "-", $3); $1=$1; print}'
| -rw-r--r-- | hostnix/elmo/rss.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/hostnix/elmo/rss.nix b/hostnix/elmo/rss.nix index f343d83..421934e 100644 --- a/hostnix/elmo/rss.nix +++ b/hostnix/elmo/rss.nix @@ -23,4 +23,22 @@ }; # TODO services.oauth2-proxy.nginx.virtualHosts = { "mf.mou.fo" = {}; }; + + virtualisation.podman.enable = true; + virtualisation.oci-containers = { + containers = { + rss = { + image = "codeberg.org/danb/rss"; + ports = [ "127.0.0.1:8283:80" ]; + volumes = [ "/home/joe/rss:/app/storage" ]; + autoStart = true; + }; + }; + }; + + services.nginx.virtualHosts."rss.elmo.mou.fo" = { + locations."/" = { + proxyPass = "http://localhost:8283"; + }; + }; } |
