-
Notifications
You must be signed in to change notification settings - Fork 0
HowTos
Innokenty Ivanov edited this page Mar 16, 2025
·
1 revision
Welcome to the How-To Guides for RSS Proxy Transformer. Below are several guides to help you setup, deploy, and troubleshoot the application.
- Ensure Python 3.7+ is installed.
- Clone the repository and install the dependencies:
git clone https://github.com/Kenya-West/rss-proxy-transformer.git cd rss-proxy-transformer pip install -r requirements.txt
- Start the application locally:
python app.py
- Access the feed at:
http://localhost:5000/feed
- Build and run using Docker:
docker build -t rss-proxy-transformer . docker run -p 5000:5000 rss-proxy-transformer
- For development:
docker-compose -f docker-compose.dev.yml up -d
- For production:
docker-compose up -d
- Configure via the
.envfile:-
FEED_URL: URL of the RSS feed. -
FEED_ENCODING: (Optional) e.g. "windows-1251" -
TRANSFORM_RULES: JSON array of rules.
-
- See .env.example for reference.
- Transformation rules are applied to specific XML fields:
- Example rule for
<link>:[ { "field": "link", "regex": "^(https?://.*)$", "replacement": "https://proxy.example.com/?url=$1" } ]
- Example rule for
- Update the
TRANSFORM_RULESin your environment configuration.
- Set
LOG_LEVEL=DEBUGin your environment or.envfile. - Check logs in the terminal for detailed error messages.
- Common issues:
- Incorrect
FEED_URL - XML parsing errors (ensure valid XML feed)
- Regex errors in transformation rules
- Incorrect
- Cloud Deployment: Deploy on Heroku, AWS, or any platform that supports Docker.
- Caddy Reverse Proxy: Refer to the Caddy Docker Compose file for reverse proxy configuration.
-
SSL & Domain Routing: Configure your domain settings in the
.envfile.
For further details, consult the README.md or open an issue on GitHub.