This repository serves multiple purposes:
- A public hastebin server,
- A public url shortening server,
- A private file hosting server,
- The backend for chatbot PotatBotat
On startup if the required Postgres tables for haste, url shortener, or image hosting do not exist, they will be created. However for the PotatBotat backend, it's assumed you already have the database preconfigured.
- Clone the repository
- Ensure you're running PostgreSQL, and Redis servers as they are required for every service. You will need to install the pgstd extension for Postgres if you intend to use the hastebin server.
- Optionally install ClickHouse, and RabbitMQ if enabling the PotatBotat backend, and Prometheus if enabling metrics
- Populate
exampleconfig.json
with the database credentials, and ports for services you want to run. It will be renamed on startup.