Skip to content

Commit be6ca93

Browse files
committed
chore: Update configuration and API endpoints
- Added `traefik.yml` to .gitignore to prevent it from being tracked. - Removed the deprecated `docker-compose.traefik.yml` file to streamline configuration. - Updated API endpoint URLs in frontend components to ensure consistent formatting with trailing slashes. - Adjusted polling interval in `ScanView` component from 3 seconds to 6 seconds for improved performance.
1 parent 6e974aa commit be6ca93

6 files changed

Lines changed: 8 additions & 383 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ uploads/*
33
logs/*
44
.env
55
.vscode/
6+
traefik.yml
7+
68

79
scanner/plugins/*/data/*
810
scanner/plugins/*/cache/*

backend/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
4747
CMD gosu backend python -c "import requests; requests.get('http://localhost:8080/api/health', timeout=5)"
4848

4949
# Start command
50-
CMD ["sh", "-c", "uvicorn api.main:app --host 0.0.0.0 --port 8080"]
50+
# Trust X-Forwarded-Proto from nginx/Traefik so redirects use https:// in Location
51+
CMD ["sh", "-c", "uvicorn api.main:app --host 0.0.0.0 --port 8080 --proxy-headers --forwarded-allow-ips='*'"]
5152

docker-compose.traefik.yml

Lines changed: 0 additions & 378 deletions
This file was deleted.

0 commit comments

Comments
 (0)