Fix: Configuration Tor et Bitcoin pour signet custom - Tor écoute maintenant sur toutes les interfaces (0.0.0.0:9050) - Bitcoin se connecte aux nœuds onion du signet custom - Synchronisation active avec le réseau signet custom - Tous les services relancés et fonctionnels
Some checks failed
CI - 4NK_node / Code Quality (push) Failing after 29s
CI - 4NK_node / Unit Tests (push) Failing after 29s
CI - 4NK_node / Integration Tests (push) Failing after 13s
CI - 4NK_node / Security Tests (push) Failing after 27s
CI - 4NK_node / Docker Build & Test (push) Failing after 9s
CI - 4NK_node / Documentation Tests (push) Failing after 4s
CI - 4NK_node / Security Audit (push) Successful in 3s
CI - 4NK_node / Release Guard (push) Has been skipped
CI - 4NK_node / Performance Tests (push) Successful in 26s
CI - 4NK_node / Notify (push) Failing after 1s
CI - 4NK_node / Publish Release (push) Has been skipped

This commit is contained in:
Debian 2025-09-03 22:24:53 +00:00
parent 78b6afbe37
commit 4aed2f7f22
5 changed files with 28 additions and 36 deletions

View File

@ -16,7 +16,7 @@ listen=1
# Paramètres RPC
rpcuser=bitcoin
rpcpassword=bitcoin
rpcallowip=192.168.240.0/20
rpcallowip=172.18.0.0/16
rpcworkqueue=32
rpcthreads=4
rpcdoccheck=1
@ -33,6 +33,7 @@ proxy=4nk-tor:9050
listenonion=1
listen=1
signetchallenge=0020341c43803863c252df326e73574a27d7e19322992061017b0dc893e2eab90821
# Nœuds onion du réseau signet custom
addnode=6xi33lwwslsx3yi3f7c56wnqtdx4v73vj2up3prrwebpwbz6qisnqbyd.onion:38333
addnode=d6i546e2sjezhyy2eupyc2wqtbgjnkubcjd4prhqurtlmp7nsp6yxqyd.onion:38333
# Ports Signet (P2P et RPC)

View File

@ -5,7 +5,7 @@
core_url=http://4nk-bitcoin:38332
rpc_user=bitcoin
rpc_password=bitcoin
core_wallet=relay_wallet
# core_wallet=relay_wallet
ws_url=0.0.0.0:8090
http_url=0.0.0.0:8091
wallet_name=relay_wallet.json

View File

@ -1,38 +1,15 @@
# Configuration Tor pour 4NK_node
# Proxy SOCKS et contrôle
# Configuration Tor simple pour 4NK_node
# Écoute sur toutes les interfaces pour permettre la connexion depuis d'autres conteneurs
# Ports SOCKS et contrôle
SocksPort 0.0.0.0:9050
ControlPort 0.0.0.0:9051
# Répertoire de données
DataDirectory /var/lib/tor
PidFile /var/lib/tor/tor.pid
# Interface SOCKS
SocksPort 9050
SocksListenAddress 0.0.0.0
# Logs sur stdout pour Docker
Log notice stdout
# Interface de contrôle
ControlPort 9051
ControlListenAddress 0.0.0.0
# Authentification du contrôle
CookieAuthentication 1
# Configuration des circuits
CircuitBuildTimeout 30
LearnCircuitBuildTimeout 0
EnforceDistinctSubnets 1
# Configuration des nœuds de sortie
ExitNodes {fr},{de},{nl},{ch}
StrictExitNodes 1
# Configuration des relais
RelayBandwidthRate 100 KB
RelayBandwidthBurst 200 KB
# Logs
Log notice file /var/lib/tor/notice.log
Log info file /var/lib/tor/info.log
Log debug file /var/lib/tor/debug.log
# Sécurité
SafeLogging 1
# Désactiver le mode daemon pour Docker
RunAsDaemon 0

View File

@ -87,8 +87,12 @@ services:
ports:
- "8090:8090"
- "8091:8091"
environment:
- RELAY_RPC_USER=bitcoin
- RELAY_RPC_PASSWORD=bitcoin
volumes:
- ./conf/sdk_relay1.conf:/home/bitcoin/.conf:ro
working_dir: /home/bitcoin
networks:
- 4nk_network
restart: unless-stopped
@ -107,8 +111,12 @@ services:
ports:
- "8092:8090"
- "8093:8091"
environment:
- RELAY_RPC_USER=bitcoin
- RELAY_RPC_PASSWORD=bitcoin
volumes:
- ./conf/sdk_relay2.conf:/home/bitcoin/.conf:ro
working_dir: /home/bitcoin
networks:
- 4nk_network
restart: unless-stopped
@ -127,8 +135,12 @@ services:
ports:
- "8094:8090"
- "8095:8091"
environment:
- RELAY_RPC_USER=bitcoin
- RELAY_RPC_PASSWORD=bitcoin
volumes:
- ./conf/sdk_relay3.conf:/home/bitcoin/.conf:ro
working_dir: /home/bitcoin
networks:
- 4nk_network
restart: unless-stopped

View File

@ -1,7 +1,9 @@
FROM alpine:latest
RUN apk add --no-cache tor curl
RUN addgroup -g 1001 toruser && adduser -D -s /bin/sh -u 1001 -G toruser toruser
RUN mkdir -p /var/lib/tor && chown -R toruser:toruser /var/lib/tor
USER toruser
EXPOSE 9050 9051
CMD ["tor"]
CMD ["tor", "-f", "/etc/tor/torrc"]