feat: update dashboard port from 8080 to 8420 in configuration and documentation

This commit is contained in:
2026-05-10 13:24:49 +02:00
parent f88f60a019
commit 0952c21c7b
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -64,4 +64,4 @@ jobs:
docker stop thc-webhook || true
docker rm thc-webhook || true
docker pull git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
docker run -d --name thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -p 8080:8080 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
docker run -d --name thc-webhook -e DISCORD_WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} -p 8420:8420 git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
+1 -1
View File
@@ -12,7 +12,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Dashboard (Flask) port
EXPOSE 8080
EXPOSE 8420
# Create a non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
+2 -2
View File
@@ -38,13 +38,13 @@ The app will run continuously and send notifications at the scheduled times.
### Dashboard
By default, a minimal dashboard is available at `http://localhost:8080/`.
By default, a minimal dashboard is available at `http://localhost:8420/`.
You can disable it by setting `DASHBOARD_ENABLED=0`.
### Admin
You can edit the embed message templates at `http://localhost:8080/admin`.
You can edit the embed message templates at `http://localhost:8420/admin`.
- Templates are saved to `templates.json` by default.
- Override the location with `TEMPLATES_PATH=/path/to/templates.json`.
+2 -2
View File
@@ -4,10 +4,10 @@ services:
container_name: thc-webhook-app
environment:
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
- DASHBOARD_PORT=8080
- DASHBOARD_PORT=8420
restart: unless-stopped
ports:
- "8080:8080"
- "8420:8420"
logging:
driver: json-file
options:
+1 -1
View File
@@ -217,7 +217,7 @@ def schedule_notification(interval: str, at: str, type: str) -> None:
def start_dashboard() -> None:
"""Compatibility hook for tests and optional dashboard startup."""
app = create_app(get_state=get_state, get_next_event=get_next_event)
app.run(host="0.0.0.0", port=8080, debug=False, use_reloader=False)
app.run(host="0.0.0.0", port=8420, debug=False, use_reloader=False)
def main() -> None: