fix: align litefs replication to port 20202
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 37s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 37s
This commit is contained in:
13
litefs.yml
13
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"
|
||||
- "*.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'"
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user