Compare commits

..

2 Commits

Author SHA1 Message Date
zwitschi 788f3ea6b7 feat: remove deployment step from Docker workflow and add nixpacks configuration
Build and Deploy Docker Container / test (push) Successful in 14s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 29s
2026-05-10 13:31:30 +02:00
zwitschi 0952c21c7b feat: update dashboard port from 8080 to 8420 in configuration and documentation 2026-05-10 13:24:49 +02:00
6 changed files with 18 additions and 18 deletions
-12
View File
@@ -53,15 +53,3 @@ jobs:
context: .
push: true
tags: git.allucanget.biz/${{ secrets.REGISTRY_USERNAME }}/thc-webhook:latest
- name: Deploy to Portainer
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
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
+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:
+12
View File
@@ -0,0 +1,12 @@
[phases.install]
cmds = ["pip install -r requirements.txt"]
[phases.test]
dependsOn = ["install"]
cmds = ["pytest --maxfail=1 --disable-warnings -q"]
[start]
cmd = "python main.py"
[variables]
PORT = "8420"