make port customizable via env variable

This commit is contained in:
maxDorninger
2025-07-22 18:02:45 +02:00
parent a2982e12c0
commit d59b4a1ec1
3 changed files with 8 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
<toc-element topic="qBittorrent-Category.md"/>
<toc-element topic="Base-Path.md"/>
<toc-element topic="metadata-provider-configuration.md"/>
<toc-element topic="Custom-port.md"/>
</toc-element>
<toc-element topic="troubleshooting.md"/>
<toc-element topic="developer-guide.md"/>

View File

@@ -0,0 +1,4 @@
# Custom port
With the env variable `PORT`, you can change the port that MediaManager listens on. The default port is `8000`.
Note that this setting only works if you are using the Docker Image.

View File

@@ -54,4 +54,6 @@ echo " Check the application logs for the login credentials."
echo " You can also register a new user and it will become admin if the email"
echo " matches one of the admin_emails in your config.toml"
echo ""
uv run fastapi run /app/media_manager/main.py --port 8000 --proxy-headers
PORT=${PORT:-8000}
uv run fastapi run /app/media_manager/main.py --port "$PORT" --proxy-headers