A simple microservice that allows to post requests to FlareSolverr via RabbitMQ.
Configuration is done using environment variables:
PORT
: Port for the HTTP endpoint (default8080
, only change when running locally!)RMQ_HOST
: Host for RabbitMQ (defaultlocalhost
)RMQ_PORT
: Port for RabbitMQ (default5672
)RMQ_USER
: Username for RabbitMQ (defaultguest
)RMQ_PASSWORD
: Password for RabbitMQ (defaultguest
)RMQ_VHOST
: Virtual host for RabbitMQ (default/
)RMQ_QUEUE_FLARESOLVERR_REQUESTS
: Name of the queue for FlareSolverr requests (defaultflaresolverr-requests
)FLARESOLVERR_URL
: URL for the FlareSolverr service (defaulthttp://localhost:8191
)
The service accepts JSON requests with the following structure:
{
"request": "Expects a request object according to the FlareSolverr API"
}
The request object is passed to the FlareSolverr service and the response is returned. Please refer to the FlareSolverr API documentation for details.
When the postData
property is set, a POST request is sent to the FlareSolverr service, otherwise a GET request is
performed.
Note: Encapsulating the request in an object is necessary to allow for additional properties in the future.
The response is returned as is, without any processing.
With the configuration stored in a file .env
, the service can be run as follows:
docker run --rm \
-p 8080:8080 \
--env-file .env \
mrtux/flaresolverr-rmq-bridge-service:latest
Please make sure to pin the container to a specific version in a production environment.
Version numbers are determined with jgitver.
If you encounter a project version 0
there is an issue with the jgitver generator.
- Stefan Haun (@penguineer)
PRs are welcome!
If possible, please stick to the following guidelines:
- Keep PRs reasonably small and their scope limited to a feature or module within the code.
- If a large change is planned, it is best to open a feature request issue first, then link subsequent PRs to this issue, so that the PRs move the code towards the intended feature.
If you miss a LaTeX package, which cannot be included in the request archive, or miss a language, please do not hesitate to open an issue or PR.
MIT © 2025 Stefan Haun and contributors