feat(signal-cli): switch to native signal-cli daemon with JSON-RPC HTTP endpoint
- Replace bbernhard/signal-cli-rest-api wrapper with native signal-cli 0.14.5 - Run signal-cli daemon in HTTP mode matching astro-orbiter working config - Expose JSON-RPC API at /api/v1/rpc for Hermes gateway compatibility - Switch health probes from HTTP /v1/health to TCP port check - Maintain existing PVC mount path /home/.local/share/signal-cli This fixes the missing /api/v1/rpc endpoint that Hermes requires for Signal message delivery.
This commit is contained in:
@@ -21,16 +21,22 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
hostNetwork: true # Use host network for Signal WebSocket connectivity
|
hostNetwork: true # Use host network for Signal WebSocket connectivity
|
||||||
containers:
|
containers:
|
||||||
- name: signal-cli-rest-api
|
- name: signal-cli
|
||||||
image: bbernhard/signal-cli-rest-api:latest # Using latest to match astro-orbiter signal-cli 0.14.3
|
image: registry.gitlab.com/packaging/signal-cli/signal-cli-native:v0.14.5
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["/usr/bin/signal-cli"]
|
||||||
|
args:
|
||||||
|
- "--config"
|
||||||
|
- "/home/.local/share/signal-cli"
|
||||||
|
- "--account"
|
||||||
|
- "+126****8840"
|
||||||
|
- "daemon"
|
||||||
|
- "--http"
|
||||||
|
- "0.0.0.0:8080"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
env:
|
|
||||||
- name: MODE
|
|
||||||
value: "json-rpc" # json-rpc mode for API compatibility
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: signal-data
|
- name: signal-data
|
||||||
mountPath: /home/.local/share/signal-cli
|
mountPath: /home/.local/share/signal-cli
|
||||||
@@ -42,16 +48,14 @@ spec:
|
|||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /v1/health
|
|
||||||
port: 8080
|
port: 8080
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /v1/health
|
|
||||||
port: 8080
|
port: 8080
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user