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:
11
litefs.yml
11
litefs.yml
@@ -8,18 +8,16 @@ data:
|
|||||||
# Use Consul for leader election
|
# Use Consul for leader election
|
||||||
lease:
|
lease:
|
||||||
type: "consul"
|
type: "consul"
|
||||||
advertise-url: "http://${ADVERTISE_IP}:8081"
|
advertise-url: "http://${ADVERTISE_IP}:20202"
|
||||||
consul:
|
consul:
|
||||||
url: "${CONSUL_URL}"
|
url: "${CONSUL_URL}"
|
||||||
key: "litefs/navidrome"
|
key: "litefs/navidrome"
|
||||||
|
|
||||||
# Internal HTTP API for replication
|
# Internal HTTP API for replication
|
||||||
http:
|
http:
|
||||||
addr: "0.0.0.0:8081"
|
addr: "0.0.0.0:20202"
|
||||||
|
|
||||||
# The HTTP Proxy routes traffic to handle write-forwarding
|
# 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:
|
proxy:
|
||||||
addr: ":8080"
|
addr: ":8080"
|
||||||
target: "localhost:4533"
|
target: "localhost:4533"
|
||||||
@@ -32,3 +30,8 @@ proxy:
|
|||||||
- "*.jpeg"
|
- "*.jpeg"
|
||||||
- "*.gif"
|
- "*.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" {
|
port "litefs" {
|
||||||
static = 20202
|
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