Files
navidrome-litefs/litefs.yml
sstent 3eaa84872c
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 37s
fix: align litefs replication to port 20202
2026-02-07 19:00:46 -08:00

38 lines
773 B
YAML

# LiteFS configuration for Navidrome
fuse:
dir: "/data"
data:
dir: "/var/lib/litefs"
# Use Consul for leader election
lease:
type: "consul"
advertise-url: "http://${ADVERTISE_IP}:20202"
consul:
url: "${CONSUL_URL}"
key: "litefs/navidrome"
# Internal HTTP API for replication
http:
addr: "0.0.0.0:20202"
# The HTTP Proxy routes traffic to handle write-forwarding
proxy:
addr: ":8080"
target: "localhost:4533"
db: "navidrome.db"
passthrough:
- "*.js"
- "*.css"
- "*.png"
- "*.jpg"
- "*.jpeg"
- "*.gif"
- "*.svg"
# Commands to run only on the primary node.
# This serves as a primary-only health check responder.
# exec:
# - cmd: "nc -lk -p 8082 -e echo -e 'HTTP/1.1 200 OK\r\nContent-Length: 7\r\n\r\nPrimary'"