From fe4a7ce2ee7b7ca82b93db1b84774da4e7fa9e28 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 10 Jan 2023 05:33:22 +0000 Subject: feat: add instructions for self hosting --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 63bf2af..547ec63 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,18 @@ fun little service powered by [fastAPI](https://github.com/tiangolo/fastapi) right now it only serves pics of teawie + +## how to host + +this is meant for my [website](https://guzzle.gay/), but it can be hosted anywhere with one edit in `src/guzzle_api/bot.py` :) + +on L7, change the `URL` constant to whatever domain you plan to host this on +```python +URL = "https:// +``` + +and to start running a docker (or podman) container: +```bash +docker build -t guzzle_api . +docker run -d --name api 7070: guzzle_api +``` -- cgit v1.2.3