본문으로 건너뛰기
버전: 4.6.1-saas

빠른 시작

이 빠른 시작 가이드로 5-10분 안에 NetFUNNEL 4 Fastly Agent를 시작하세요.


사전 요구사항

  • NetFUNNEL 콘솔 액세스
  • Fastly 계정 및 Compute Services 지원
  • Fastly CLI 설치
  • Fastly API 토큰

1단계: Client ID 가져오기

  1. NetFUNNEL 콘솔로 이동
  2. 우측 상단의 프로필 아이콘 클릭
  3. 통합 자격 증명 (Integration Credentials) 메뉴 선택
  4. Client ID 복사

2단계: Fastly CLI 설치

Fastly CLI를 설치합니다:

brew install fastly/tap/fastly

3단계: Compute Service 생성

  1. Fastly 콘솔 → [Compute] 이동
  2. 우상단의 [Create service] 클릭
  3. [+ Use starter kit] 선택
  4. Service name 입력
  5. Add your own domain에 compute를 적용할 도메인 입력
  6. [Next: Choose a starter kit] 클릭
  7. Default starter for Rust 선택
  8. [Finalize and deploy] 클릭

4단계: CNAME 등록

  1. Deploy 완료 후 Additional setup의 Point your custom domain to Fastly 확인
  2. [Issue TLS Certification] 클릭
  3. Your DNS provider에서 도메인이 등록된 서비스 선택
  4. 해당 서비스에서 CNAME 등록

5단계: Service Configuration 설정

  1. [Edit configuration] (또는 [Service configuration]) 클릭
  2. [Clone version 1 (active) to edit] 클릭

nf_core host 생성

  1. Origins 메뉴 선택
  2. Hostname에 serverUrl 도메인 입력
  3. [Add] 클릭
  4. 생성한 host 선택 → Edit 페이지 이동
  5. Name을 nf_core로 변경
  6. [Update] 클릭

nf_setting host 생성

  1. [+ Create a host] 클릭
  2. Hostname에 settingUrl 도메인 입력
  3. [Add] 클릭
  4. 생성한 host 선택 → Edit 페이지 이동
  5. Name을 nf_setting으로 변경
  6. [Update] 클릭

origin host 생성

  1. [+ Create a host] 클릭
  2. Hostname에 원본 주소 입력
  3. [Add] 클릭
  4. 생성한 host 선택 → Edit 페이지 이동
  5. Name을 origin으로 변경
  6. [Update] 클릭

Activate

  1. 우상단의 [Activate] 클릭하여 저장

6단계: Config Store 설정

Config Store 생성

  1. Resources 메뉴 → Config stores 이동
  2. 우상단의 [+ Create store] 클릭
  3. Store name: nf_config_store 입력
  4. [Create] 클릭
  5. [Add item] 클릭
  6. Key: CLIENT_ID, Value: {'{CLIENT_ID}'} 입력
  7. [Add] 클릭

Config Store 연결

  1. 상단 탭의 [Linked Services] 선택
  2. [Link service] 클릭
  3. 위에서 생성한 Compute service 선택
  4. [Next] 클릭
  5. [Link and activate] 클릭
  6. Active Service Versions 창에서 [Confirm and activate] 클릭

7단계: 토큰 생성

  1. Account → API tokens → Personal tokens 이동
  2. 우상단의 [+ Create Token] 클릭
  3. [Continue] 클릭 후 다시 로그인
  4. Name 입력
  5. Expiration: Never expire 선택
  6. [Create Token] 클릭

8단계: 에이전트 배포

에이전트 파일 다운로드

https://agent-lib.stclab.com/agents/cdn/fastly/netfunnel-fastly-agent-latest.tar 에서 netfunnel-fastly-agent.tar 파일 다운로드

toml 파일 수정

  1. 다운로드한 에이전트 파일 압축 해제
  2. fastly.toml 파일 열기
  3. Fastly 콘솔에서 compute service의 ID 복사
  4. cloned_fromservice_id에 복사한 ID 입력:
authors = []
cloned_from = "{SERVICE_ID}"
description = "Fastly agent for NetFUNNEL - Rust implementation"
language = "rust"
manifest_version = 3
name = "NetFUNNEL-Fastly-Agent-Rust"
service_id = "{SERVICE_ID}"

에이전트 배포

  1. netfunnel-fastly-agent 폴더에서 터미널 열기
  2. 아래 명령어 실행:
fastly compute deploy

다음 단계