ops(signer): ajouter endpoint /signer/health via proxy; health simple netcat 9092; nginx update
Some checks failed
CI - 4NK Node / Code Quality (push) Failing after 37s
CI - 4NK Node / Unit Tests (push) Failing after 37s
CI - 4NK Node / Integration Tests (push) Successful in 34s
CI - 4NK Node / Security Tests (push) Failing after 33s
CI - 4NK Node / Docker Build & Test (push) Failing after 16s
CI - 4NK Node / Documentation Tests (push) Successful in 11s
CI - 4NK Node / Performance Tests (push) Successful in 35s
CI - 4NK Node / Notify (push) Failing after 1s
Some checks failed
CI - 4NK Node / Code Quality (push) Failing after 37s
CI - 4NK Node / Unit Tests (push) Failing after 37s
CI - 4NK Node / Integration Tests (push) Successful in 34s
CI - 4NK Node / Security Tests (push) Failing after 33s
CI - 4NK Node / Docker Build & Test (push) Failing after 16s
CI - 4NK Node / Documentation Tests (push) Successful in 11s
CI - 4NK Node / Performance Tests (push) Successful in 35s
CI - 4NK Node / Notify (push) Failing after 1s
This commit is contained in:
parent
63e1b3acc4
commit
8600df0c9d
@ -263,12 +263,18 @@ services:
|
|||||||
dockerfile: ../dockerfiles/sdk_signer.Dockerfile
|
dockerfile: ../dockerfiles/sdk_signer.Dockerfile
|
||||||
container_name: sdk-signer
|
container_name: sdk-signer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
user: "0:0"
|
||||||
environment:
|
environment:
|
||||||
- PORT=9090
|
- PORT=9090
|
||||||
- API_KEY=dev-change-me
|
- API_KEY=dev-change-me
|
||||||
- RELAY_URLS=ws://sdk_relay_1:8090
|
- RELAY_URLS=ws://sdk_relay_1:8090
|
||||||
- LOG_LEVEL=info
|
- LOG_LEVEL=info
|
||||||
- DATABASE_PATH=/app/data/server.db
|
- DATABASE_PATH=/app/data/server.db
|
||||||
|
entrypoint: >
|
||||||
|
/bin/sh -lc "mkdir -p /app/data && chown -R nodejs:nodejs /app/data || true; \
|
||||||
|
apk add --no-cache busybox-extras >/dev/null 2>&1 || true; \
|
||||||
|
( while true; do { printf 'HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 2\r\n\r\nok'; } | nc -l -p 9092 -s 0.0.0.0 -q 1; done ) & \
|
||||||
|
exec node -r ts-node/register/transpile-only src/index.ts"
|
||||||
networks:
|
networks:
|
||||||
btcnet:
|
btcnet:
|
||||||
aliases:
|
aliases:
|
||||||
|
@ -81,14 +81,22 @@ server {
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host sdk_signer;
|
||||||
|
proxy_set_header Origin "http://sdk_signer:9090";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_buffering off;
|
||||||
proxy_read_timeout 86400;
|
proxy_read_timeout 86400;
|
||||||
proxy_send_timeout 86400;
|
proxy_send_timeout 86400;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Healthcheck sdk_signer HTTP
|
||||||
|
location /signer/health {
|
||||||
|
proxy_pass http://sdk_signer:9092/health;
|
||||||
|
proxy_set_header Host sdk_signer;
|
||||||
|
}
|
||||||
|
|
||||||
# Healthcheck simple
|
# Healthcheck simple
|
||||||
location = /health {
|
location = /health {
|
||||||
return 200;
|
return 200;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user