16313f8f35
ds-gpu.tailnet-name.ts.net(실재하지 않는 placeholder) → http://100.110.63.63:8000/api. contract/CONTRACT.md·CompositionTests 의 기존 값과 일치. DS 본체 = GPU 서버 유지 확정(2026-06-07)에 따른 앱 연결 타깃 정합. swift test 72 green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
643 B
Swift
19 lines
643 B
Swift
import Foundation
|
|
|
|
/// Injectable base URL. Public TLS by default; Tailscale alternative = GPU 서버 canonical
|
|
/// Tailscale IP (infra_inventory.md 단일 진실, 2026-06-07 사용자 확정 — DS 본체 = GPU 서버 유지,
|
|
/// contract/CONTRACT.md·CompositionTests 와 동일 값).
|
|
public enum DSBaseURL: Sendable {
|
|
case publicTLS
|
|
case tailscale
|
|
case custom(URL)
|
|
|
|
public var url: URL {
|
|
switch self {
|
|
case .publicTLS: return URL(string: "https://document.hyungi.net/api")!
|
|
case .tailscale: return URL(string: "http://100.110.63.63:8000/api")!
|
|
case .custom(let u): return u
|
|
}
|
|
}
|
|
}
|