No description
- Python 95.1%
- Dockerfile 4.9%
|
|
||
|---|---|---|
| app.py | ||
| Dockerfile | ||
| README.md | ||
| requirements.txt | ||
Tiniest rss feed
The simplest flask app that serves rss /feed and supports posting, listing and removing messages. Dead simple.
Usage
# Post a message
curl -u user:password -X POST http://localhost:5000/items \
-H "Content-Type: application/json" \
-d '{"title": "Hello", "description": "New update"}'
# Delete
curl -u user:password -X DELETE http://localhost:5000/items/<guid>
# List
curl -u user:password http://localhost:5000/items
Docker compose
Build with docker:
docker build . -t rss_feed:latest
Then run with Docker compose:
services:
rss:
image: rss_feed:latest
environment:
FEED_TITLE: "Your RSS feed"
FEED_LINK: "https://youraddress.com/"
FEED_DESCRIPTION: Updates and stuff
FEED_FILE: /data/feed.xml
API_USER: $USER
API_PASSWORD: $PASSWD
restart: unless-stopped
ports:
- 6767:5000
volumes:
- $XML_DIR:/data
networks: {}
Put the environment variables you need into .env, which is autopulled by docker compose.