diff --git a/.gitea/workflows/build-container.yaml b/.gitea/workflows/build-container.yaml index 7928f8b..41fc712 100644 --- a/.gitea/workflows/build-container.yaml +++ b/.gitea/workflows/build-container.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile index 3135939..2aec893 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 7ccaa17..d068a07 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/docker-compose.yml b/docker-compose.yml index 59f3d1b..3412e6a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/main.py b/main.py index a7841c6..a6100ec 100644 --- a/main.py +++ b/main.py @@ -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: