feat: 게임 파일 직접 업로드 방식으로 전환
All checks were successful
Server CI/CD / deploy (push) Successful in 35s
All checks were successful
Server CI/CD / deploy (push) Successful in 35s
- zip 스트리밍 업로드 (StreamRequestBody) → /data/game/game.zip 저장 - A301.exe SHA256 해시 자동 추출 (zip 분석) - 버전·파일명·크기 파일명 및 용량에서 자동 추출 - GET /api/download/file 엔드포인트 추가 - BASE_URL, GAME_DIR 환경변수 추가 - Dockerfile에 /data/game 디렉토리 생성 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
8
main.go
8
main.go
@@ -47,10 +47,12 @@ func main() {
|
||||
annHandler := announcement.NewHandler(annSvc)
|
||||
|
||||
dlRepo := download.NewRepository(database.DB)
|
||||
dlSvc := download.NewService(dlRepo)
|
||||
dlHandler := download.NewHandler(dlSvc)
|
||||
dlSvc := download.NewService(dlRepo, config.C.GameDir)
|
||||
dlHandler := download.NewHandler(dlSvc, config.C.BaseURL)
|
||||
|
||||
app := fiber.New()
|
||||
app := fiber.New(fiber.Config{
|
||||
StreamRequestBody: true,
|
||||
})
|
||||
app.Use(logger.New())
|
||||
app.Use(cors.New(cors.Config{
|
||||
AllowOrigins: "https://a301.tolelom.xyz",
|
||||
|
||||
Reference in New Issue
Block a user