Fluxheim 실행하기
로컬 서버를 빠르게 띄우고 싶을 때 이 페이지를 사용하세요. 설정을 작게 유지하고 트래픽을 받기 전에 검증합니다.
설치
아카이브를 풀기 전에 게시된 SHA-256 체크섬을 검증하세요.
Linux x86_64
VERSION="1.8.2"
ARCHIVE="fluxheim-${VERSION}-full-x86_64-linux.tar.gz"
BASE_URL="https://github.com/valkyoth/fluxheim/releases/download/v${VERSION}"
curl -fLO "${BASE_URL}/${ARCHIVE}"
echo "1a323dcd5632e25acf2e4463e549f20cdd3d568f445f9d923b1be312ec7f9839 ${ARCHIVE}" | sha256sum -c -
tar -xzf "$ARCHIVE"
sudo install -m 0755 "fluxheim-${VERSION}-full-x86_64-linux/fluxheim" /usr/local/bin/fluxheim
macOS Apple Silicon용
VERSION="1.8.2"
ARCHIVE="fluxheim-${VERSION}-full-aarch64-macos.tar.gz"
BASE_URL="https://github.com/valkyoth/fluxheim/releases/download/v${VERSION}"
curl -fLO "${BASE_URL}/${ARCHIVE}"
echo "a725ebcccac259af6640da57ce12e7a3944c5bd0d9e7869d4001196a0c394031 ${ARCHIVE}" | shasum -a 256 -c -
tar -xzf "$ARCHIVE"
install -d "$HOME/.local/bin"
install -m 0755 "fluxheim-${VERSION}-full-aarch64-macos/fluxheim" "$HOME/.local/bin/fluxheim"
서명되지 않은 명령줄 미리 보기입니다. Gatekeeper를 계속 활성화하세요. Developer ID 서명, 공증, launchd 연동은 아직 제공되지 않습니다.
Windows x86_64용
$Version = "1.8.2"
$Archive = "fluxheim-$Version-full-x86_64-windows.zip"
$BaseUrl = "https://github.com/valkyoth/fluxheim/releases/download/v$Version"
Invoke-WebRequest "$BaseUrl/$Archive" -OutFile $Archive
$Expected = "a72b84720083406f318bf3fc87555eb62fd76dbd1506dbf2cd368e7364726b44"
if ((Get-FileHash $Archive -Algorithm SHA256).Hash.ToLowerInvariant() -cne $Expected) { throw "Archive checksum verification failed" }
Expand-Archive -LiteralPath $Archive -DestinationPath "$env:LOCALAPPDATA\Fluxheim" -Force
서명되지 않은 포터블 미리 보기입니다. SmartScreen과 PowerShell 보안 기능을 계속 활성화하세요. Authenticode 서명과 Windows 서비스 설치 프로그램은 아직 제공되지 않습니다.
PHP-FPM 관리형 프로세스 감독은 Unix에서만 사용할 수 있습니다. Windows에서는 외부 TCP FastCGI 풀을 지원합니다.
최소 정적 사이트
[server]
listen = ["0.0.0.0:8080"]
default_vhost = "site"
[[vhosts]]
name = "site"
hosts = ["example.com"]
[vhosts.web]
root = "/srv/example"
index_files = ["index.html"]
deny_dotfiles = true
첫 config가 하는 일
| 옵션 | 목적 |
|---|---|
server.listen | Fluxheim이 여는 plain HTTP socket을 제어합니다. |
server.default_vhost | host가 match되지 않을 때 fallback site를 선택합니다. |
vhosts.hosts | site가 허용하는 hostname 목록입니다. |
vhosts.web.root | 방문자에게 제공되는 directory를 가리킵니다. |
확인 후 시작
fluxheim --config /etc/fluxheim/fluxheim.toml --check-config
fluxheim --config /etc/fluxheim/fluxheim.toml
deployment script에서 config check를 사용하세요. traffic을 이동하기 전에 unknown field, unsafe path, invalid listener, feature/config mismatch를 잡습니다.
다음 유용한 선택
- DNS가 host를 가리킨 뒤에만 TLS를 추가하세요.
- Add cache only for routes that are safe to share between visitors.
- Add metrics only when the listener is private or behind a trusted proxy.