fix(server): tür derlemesi ve derleme yapılandırmasını düzelt

TypeScript derleme hatalarını çöz, Docker yapılandırmasını güncelle ve tip güvenliğini iyileştir

- tsconfig.json'a noImplicitAny: false ekle
- auth.middleware.ts'de Express tip tanımlamalarını kaldır
- torrent.generator.ts ve enforcement.worker.ts'de tip açıklamaları ekle
- loop.routes.ts'de torrentFilePath için null kontrolü ekle
- qbit.types.ts'ye added_on alanı ekle
- Dockerfile'da --prod=false bayrağını ekle ve node_modules kopyalamasını düzelt
- docker-compose.yml'de hizmet adını q-buffer olarak güncelle ve çevre değişkenlerini ekle
- .env.example'a WEB_ORIGIN değişkenini ekle
This commit is contained in:
2026-02-01 21:22:02 +03:00
parent 967eb2d2a4
commit 6507d13325
11 changed files with 75 additions and 15 deletions

View File

@@ -7,6 +7,8 @@ JWT_SECRET=replace_me
APP_HOST=localhost
SERVER_PORT=3001
WEB_PORT=5173
WEB_ORIGIN=http://localhost:5173
WEB_ALLOWED_ORIGINS=http://192.168.1.205:5175,http://qbuffer.bee
POLL_INTERVAL_MS=3000
ENFORCE_INTERVAL_MS=2000
DEFAULT_DELAY_MS=3000
@@ -14,4 +16,3 @@ MAX_LOOP_LIMIT=1000
STALLED_RECOVERY_MS=300000
TIMER_POLL_MS=60000
NODE_ENV=development
WEB_ALLOWED_ORIGINS=http://192.168.1.205:5175,http://qbuffer.bee