1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-22 06:01:45 +00:00
Files
geek-cookbook/manuscript/recipes/rss.md
Benjamin Durham a86c666fc6 Bulletpoints
2021-10-01 18:25:28 +13:00

75 lines
1.7 KiB
Markdown

# RSS Bridge
[RSS-Bridge](https://github.com/RSS-Bridge/rss-bridge) is a PHP project capable of generating RSS and Atom feeds for websites that don't have one. It can be used on webservers or as a stand-alone application in CLI mode. You can deploy the service in different ways. Such as installing using PHP, Or you can setup using the Docker [Image](https://hub.docker.com/r/rssbridge/rss-bridge).
![RSS Screenshot](../images/rss.png)
Features include
* Ability to generate RSS feeds for sites that do not have one.
* Can be used as a webserver or used as a CLI
* Supports multiple output formats such as
* Atom
* HTML
* JSON
* Mrss
* Plaintext
--8<-- "recipe-standard-ingredients.md"
## Preparation
### Setup data locations
First we create a directory to hold the data which RSS will serve:
```
mkdir /var/data/config/rss
cd /var/data/config/rss
```
### Setup Docker Swarm
Create a docker swarm config file in docker-compose syntax (v3), something like this:
--8<-- "premix-cta.md"
```yaml
version: '3'
services:
rss:
image: rssbridge/rss-bridge:latest
volumes:
- /var/data/config/rss:/config
deploy:
labels:
# traefik common
- traefik.enable=true
- traefik.docker.network=traefik_public
# traefikv1
- traefik.frontend.rule=Host:rss.example.com
- traefik.port=80
# traefikv2
- "traefik.http.routers.rss.rule=Host(`rss.example.com`)"
- "traefik.http.services.rss.loadbalancer.server.port=80"
networks:
- traefik_public
networks:
traefik_public:
external: true
```
## Serving
### Launch RSS!
Launch the RSS stack by running ```docker stack deploy rss -c <path -to-docker-compose.yml>```
--8<-- "recipe-footer.md"