Expose API on all network interfaces

This commit is contained in:
Jonas
2025-09-21 20:39:52 +02:00
parent aafcdd544e
commit 697ce451de
2 changed files with 13 additions and 1 deletions

View File

@@ -1,2 +1,13 @@
# profile-api
Generate easy Profile pictures and more!
## Running locally
Install dependencies from `requirements.txt` and start the server with:
```bash
python main.py
```
The API listens on `0.0.0.0:5000`, making it reachable from other machines on the
network.

View File

@@ -26,4 +26,5 @@ def create_pic():
if __name__ == "__main__":
app.run()
# Bind to all interfaces so the API is reachable outside the container/host.
app.run(host="0.0.0.0")