diff --git a/.gitea/workflows/run-agent.yml b/.gitea/workflows/run-agent.yml index d14b98c2..0db9b266 100644 --- a/.gitea/workflows/run-agent.yml +++ b/.gitea/workflows/run-agent.yml @@ -6,7 +6,16 @@ # # 요구사항: # - 저장소 설정에서 Actions 활성화 + act_runner 등록 (runs-on: ubuntu-latest 라벨) -# - runner 에서 legalpoc.eroomai.com 접근 가능해야 함 +# - 러너가 백엔드에 내부 주소로 접근 가능해야 함 (아래 api_base 참고) +# +# 인증 (중요): +# 공개 URL(https://legalpoc.eroomai.com)은 Google OAuth 프록시(auth.eroomai.com) +# 뒤에 있어서 CI 에서는 302 로 로그인 페이지로 튕긴다. 그래서 api_base 기본값을 +# 프록시를 거치지 않는 내부 주소(http://localhost:8800)로 둔다. +# 내부 백엔드는 /api 접두사 없이 루트로 API 를 제공한다(/upload-agent, /sse/agent/...). +# ※ 러너 job 이 컨테이너 안에서 돌아 localhost 로 호스트에 못 닿으면 +# api_base 를 http://host.docker.internal:8800 또는 +# http://eroom-server.tailabbfd5.ts.net:8800 로 바꿔서 실행할 것. # # 실행 흐름 (SKILL.md §0.6 경로 A): # upload-agent 등록 → SSE start → stage_complete 자동 confirm → execution_complete @@ -52,9 +61,9 @@ on: default: '0' type: string api_base: - description: 'AgentBackend API base URL' + description: 'AgentBackend API base URL (내부 주소, /api 접두사 없음)' required: false - default: 'https://legalpoc.eroomai.com/api' + default: 'http://localhost:8800' type: string max_runtime_seconds: description: '총 실행 시간 상한(초). Gitea/act_runner 3h 상한보다 짧게'