본문으로 건너뛰기
버전: 1.0.0

DNS 설정

NuFi는 dashboard.nufi.com, api.nufi.com 같은 고정 host와 Serving마다 생성되는 동적 host를 함께 사용합니다. 설치 후 클라이언트 PC에서 이 도메인들이 NuFi 서버 IP로 해석되도록 로컬 DNS를 설정해야 합니다.

정보

이 설정은 NuFi 서버가 아닌, 접속할 클라이언트 PC에서 진행합니다.

사전 확인

시작하기 전에 다음 정보를 준비합니다.

항목설명확인 방법
NuFi 서버 IPNuFi가 설치된 서버(마스터 노드)의 IP서버에서 ip addr show 실행
네트워크 연결클라이언트에서 NuFi 서버로 통신 가능ping <서버 IP>

ping이 안 되면 같은 네트워크에 있는지, 방화벽 설정을 확인하세요.

클라이언트 스크립트 실행

임의의 Serving endpoint까지 접속하려면 wildcard 모드를 사용합니다.

macOS/Linux:

curl -LsSf https://docs.nufi.me/install/nufi-access.sh | sudo bash -s -- --mode wildcard --base-domain <도메인> <NuFi 서버 IP>

Windows PowerShell:

PowerShell을 관리자 권한으로 실행합니다. Chocolatey가 없으면 아래 명령으로 먼저 설치합니다.

powershell -NoProfile -ExecutionPolicy Bypass -Command "if (-not (Get-Command choco -ErrorAction SilentlyContinue)) { iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) }"

그다음 접속 설정 스크립트를 실행합니다.

powershell -NoProfile -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((irm https://docs.nufi.me/install/nufi-access.ps1))) -Mode wildcard -BaseDomain <도메인> -NodeIp <NuFi 서버 IP>"

접속 확인

브라우저에서 대시보드에 접속합니다.

http://dashboard.<도메인>

동적 Serving endpoint도 같은 base domain 아래에서 접속합니다.

http://<generated-endpoint>.<도메인>

정리

DNS 설정이 더 이상 필요하지 않으면 cleanup을 실행합니다.

macOS/Linux:

curl -LsSf https://docs.nufi.me/install/nufi-access.sh | sudo bash -s -- cleanup --mode wildcard --base-domain <도메인>

Windows PowerShell:

powershell -NoProfile -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((irm https://docs.nufi.me/install/nufi-access.ps1))) cleanup -Mode wildcard -BaseDomain <도메인>"