Skip to content

설정 ​

agent.toml ​

innge agent는 --config(기본 ~/.config/innge/agent.toml) 하나를 읽는다. ~/를 펼친다. --server는 파일의 server를 덮어쓴다. 설정이 바뀌면 재시작해야 한다. 설정이 틀리면 시작하지 않고, 모르는 키는 경고만 남긴다. git을 실행할 수 없어도 시작하지 않는다.

toml
server = "ws://server:7420/agent"
name = "desk"            # 없으면 hostname

[[root]]
path = "~/work"
depth = 3                # 기본 3, 0은 루트 자체만
exclude = ["node_modules", "build"]   # 내려가지 않을 디렉터리 이름

[watch]
poll_interval = "30s"    # 주기 확인
rescan_interval = "5m"   # 다시 찾기
events = true            # 이벤트 감시 (false면 주기 확인만)

[change]
enabled = true           # false면 변경 조작 거절 (읽기 · 감시는 그대로)

[terminal]
enabled = true           # false면 터미널 전부 거절

[update]
remote = true            # false면 웹의 머신 업데이트 요청 거절

감시 루트 아래 depth까지 .git이 있는 디렉터리를 저장소로 찾고, 그 아래로는 내려가지 않는다. exclude 이름 · 숨은 디렉터리 · 심볼릭 링크 · 읽을 수 없는 디렉터리는 내려가지 않는다. 가입 때 설정 파일이 없으면 server 주소를 넣어 만들고, 감시 루트는 기본 ~의 깊이 3이다(설치 뒤 고침).

server 플래그 ​

sh
innge server --listen 127.0.0.1:7420 --data ~/.local/share/innge
  • --listen <주소[,주소…]>: 기본 127.0.0.1:7420. 호스트가 tailscale이면 tailnet IPv4로 바꾼다. 0.0.0.0 · ::은 막지 않고 경고한다.
  • --data <디렉터리>: 기본 ~/.local/share/innge. DB(innge.db)와 server 키가 여기 든다.
  • --allow-origin <origin[,…]>: 상태를 바꾸는 브라우저 요청을 더 받을 origin.

그 밖에 innge server install [--listen …] [--data …] · uninstall(서비스 등록 · 해제), innge server info(키 지문 보기)가 있다.

innge — 여러 머신의 git 작업 디렉터리를 한 화면에서