Files
navidrome-litefs/litefs.yml
sstent 402553a674
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
fix: move to native LiteFS leadership management with if-candidate: true
2026-04-27 08:52:41 -07:00

40 lines
721 B
YAML

# LiteFS configuration for Navidrome
fuse:
dir: "/litefs"
data:
dir: "/var/lib/litefs"
# Use Consul for leader election
lease:
type: "consul"
candidate: true
promote: true
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.
exec:
- cmd: "/usr/local/bin/entrypoint.sh"
if-candidate: true