diff --git a/litefs.yml b/litefs.yml index 317e2d6..90b5589 100644 --- a/litefs.yml +++ b/litefs.yml @@ -8,18 +8,16 @@ data: # Use Consul for leader election lease: type: "consul" - advertise-url: "http://${ADVERTISE_IP}:8081" + advertise-url: "http://${ADVERTISE_IP}:20202" consul: url: "${CONSUL_URL}" key: "litefs/navidrome" # Internal HTTP API for replication http: - addr: "0.0.0.0:8081" + addr: "0.0.0.0:20202" # The HTTP Proxy routes traffic to handle write-forwarding -# It listens on 8080 inside the container. -# Nomad will map host 4533 to this port. proxy: addr: ":8080" target: "localhost:4533" @@ -31,4 +29,9 @@ proxy: - "*.jpg" - "*.jpeg" - "*.gif" - - "*.svg" \ No newline at end of file + - "*.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'" diff --git a/navidrome-litefs-v2.nomad b/navidrome-litefs-v2.nomad index 06e5432..640774e 100644 --- a/navidrome-litefs-v2.nomad +++ b/navidrome-litefs-v2.nomad @@ -29,7 +29,7 @@ job "navidrome-litefs" { } port "litefs" { static = 20202 - to = 8081 # Maps host 20202 to container 8081 (LiteFS Replication) + to = 20202 # Maps host 20202 to container 20202 (LiteFS Replication) } }