Mise à jour des configurations des modules

- Mise à jour blindbit.toml avec les bonnes URLs Docker
- Suppression des fichiers config.ts obsolètes d'ihm_client
- Renommage sdk_signer.conf.exemple vers .env.exemple
- Mise à jour des exemples de configuration LeCoffre
- Nettoyage des données Bitcoin confidentielles
This commit is contained in:
root 2025-09-09 00:53:47 +02:00
parent 3991cedc85
commit 36dc747e18
7 changed files with 75 additions and 76 deletions

View File

@ -1,50 +1,50 @@
# 0.0.0.0:8000 to expose outside of localhost
# default: "127.0.0.1:8000"
host = "blindbit.4nk.local:8000"
host="blindbit.4nk.local:8000"
# Defines on which chain the wallet runs. Allowed values: main, testnet, signet, regtest.
# default: signet
chain = "signet"
chain="signet"
# default: http://bitcoin.4nk.local:8332
rpc_endpoint = "http://bitcoin.4nk.local:38332"
rpc_endpoint="http://bitcoin.4nk.local:38332"
# required, unless rpc_user and rpc_pass are set
cookie_path = "$HOME/.bitcoin/signet/.cookie"
cookie_path="/home/bitcoin/.bitcoin/signet/.cookie"
# required, unless cookie_path is set
rpc_pass = ""
rpc_pass=""
# required, unless cookie_path is set
rpc_user = ""
rpc_user=""
# required (has to be >= 1)
sync_start_height = 1
sync_start_height=1
# the default for this is 1, but should be set to a higher value to increase performance,
# one should set this in accordance to how many cores one wants to use
max_parallel_tweak_computations = 4
max_parallel_tweak_computations=4
# (depends on max-rpc-workers of the underlying full node)
max_parallel_requests = 4
max_parallel_requests=4
# optional - will only generate tweaks (still both cut-through and full-index)
# default: 0
tweaks_only = 0
tweaks_only=0
# The base index. Only includes the tweaks. No dust filtering or cut-through possible
# default: 1
tweaks_full_basic = 1
tweaks_full_basic=1
# if this is set a full non-cut-through index will be created.
# This index can be used to filter for dust (?dustLimit=). If this is active the base index will not be created.
# All full index queries will be served from this with or without (?dustLimit=) set in the query.
# default 0
tweaks_full_with_dust_filter = 0
tweaks_full_with_dust_filter=0
# This index applies cut-through and dust filtering.
# Beware that it will be stored in addition to any full index (with or without dust) if activated.
# It has more storage requirements than the simple indices.
# Currently still requires tweaks_only=0.
# default: 0
tweaks_cut_through_with_dust_filter = 0
tweaks_cut_through_with_dust_filter=0

View File

@ -1,7 +0,0 @@
const U32_MAX = import.meta.env.U32_MAX;
const BASEURL = import.meta.env.DEV.BASEURL;
const BOOTSTRAPURL = import.meta.env.DEV.BOOTSTRAPURL;
const STORAGEURL = import.meta.env.DEV.STORAGEURL;
const BLINDBITURL = import.meta.env.DEV.BLINDBITURL;
const DEFAULTAMOUNT = import.meta.env.DEV.DEFAULTAMOUNT;
const EMPTY32BYTES = import.meta.env.DEV.EMPTY32BYTES;

View File

@ -1,7 +0,0 @@
const U32_MAX = import.meta.env.U32_MAX;
const BASEURL = import.meta.env.DEV.BASEURL;
const BOOTSTRAPURL = import.meta.env.DEV.BOOTSTRAPURL;
const STORAGEURL = import.meta.env.DEV.STORAGEURL;
const BLINDBITURL = import.meta.env.DEV.BLINDBITURL;
const DEFAULTAMOUNT = import.meta.env.DEV.DEFAULTAMOUNT;
const EMPTY32BYTES = import.meta.env.DEV.EMPTY32BYTES;

View File

@ -24,7 +24,7 @@ timeout = 30
# Logging
log_level = "info"
log_file = "$HOME/bitcoin/logs/sdk_signer.log"
log_file = "/home/bitcoin/logs/sdk_signer.log"
# Sécurité
enable_tls = false

View File

@ -4,7 +4,7 @@
http_port = 8081
# Base de données
db_path = "$HOME/bitcoin/.4nk/storage.db"
db_path = "/home/bitcoin/.4nk/storage.db"
# URLs des services
relay_urls = ["http://4nk-sdk-relay1:8091", "http://4nk-sdk-relay2:8093", "http://4nk-sdk-relay3:8095"]
@ -22,10 +22,10 @@ timeout = 30
# Logging
log_level = "info"
log_file = "$HOME/bitcoin/logs/sdk_storage.log"
log_file = "/home/bitcoin/logs/sdk_storage.log"
# Stockage de fichiers
file_storage_path = "$HOME/bitcoin/.4nk/files"
file_storage_path = "/home/bitcoin/.4nk/files"
max_file_size = "100MB"
# Sécurité

View File

@ -1,16 +1,50 @@
# Configuration d'environnement pour lecoffre-back-mini
# Base de données PostgreSQL
POSTGRES_HOST=miniback-postgres.4nk.local
POSTGRES_PORT=5432
POSTGRES_DB=miniback
POSTGRES_USER=miniback
POSTGRES_PASSWORD=minibackpassword
# Configuration OVH
OVH_APP_KEY=
OVH_APP_SECRET=
OVH_CONSUMER_KEY=
OVH_SMS_SERVICE_NAME=
# Configuration de l'application
APP_PORT=3000
APP_ENV=development
LOG_LEVEL=info
# Configuration SMS Factor
SMS_FACTOR_TOKEN=
# Configuration des services 4NK
SDK_STORAGE_URL=http://sdk-storage.4nk.local:8081
SDK_SIGNER_URL=http://sdk-signer.4nk.local:9090
#Configuration Mailchimp
MAILCHIMP_API_KEY=
MAILCHIMP_KEY=
MAILCHIMP_LIST_ID=
#Configuration Stripe
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_STANDARD_SUBSCRIPTION_PRICE_ID=
STRIPE_STANDARD_ANNUAL_SUBSCRIPTION_PRICE_ID=
STRIPE_UNLIMITED_SUBSCRIPTION_PRICE_ID=
STRIPE_UNLIMITED_ANNUAL_SUBSCRIPTION_PRICE_ID=
# Configuration serveur
APP_HOST=http://coffre-back-mini.4nk.local
PORT=8080
# Configuration front-end
NEXT_PUBLIC_4NK_URL=http://ihm-client.4nk.local
NEXT_PUBLIC_FRONT_APP_HOST=http://coffre-front.4nk.local:3000
NEXT_PUBLIC_IDNOT_BASE_URL=https://qual-connexion.idnot.fr
NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT=/IdPOAuth2/authorize/idnot_idp_v1
NEXT_PUBLIC_IDNOT_CLIENT_ID=
NEXT_PUBLIC_BACK_API_PROTOCOL=http
NEXT_PUBLIC_BACK_API_HOST=coffre-back-mini.4nk.local
BACK_API_PORT=8080
BACK_API_ROOT_URL=/api
BACK_API_VERSION=/v1
# Configuration idnot
IDNOT_ANNUARY_BASE_URL='https://qual-api.notaires.fr/annuaire'
IDNOT_API_KEY='
# Configuration PostgreSQL
DB_HOST=miniback-postgres.4nk.local
DB_PORT=5432
DB_NAME=miniback
DB_USER=miniback
DB_PASSWORD=minibackpassword
LOG_LEVEL="debug"

View File

@ -1,31 +1,10 @@
# Configuration LeCoffre Front
# Copier ce fichier vers .env et adapter les valeurs
# Configuration API Backend
REACT_APP_API_URL=http://coffre-back-mini.4nk.local:8081/api/v1
REACT_APP_API_TIMEOUT=30000
# Configuration 4NK
REACT_APP_SDK_STORAGE_URL=http://sdk-storage.4nk.local:80
REACT_APP_SDK_RELAY_URL=http://sdk-relay1.4nk.local:80
REACT_APP_SDK_SIGNER_URL=http://sdk-signer.4nk.local:80
# Configuration Bitcoin
REACT_APP_BITCOIN_NETWORK=signet
REACT_APP_BITCOIN_RPC_URL=http://bitcoin.4nk.local:38332
# Configuration Tor
REACT_APP_TOR_PROXY_URL=socks5://tor.4nk.local:9050
# Configuration UI
REACT_APP_THEME=dark
REACT_APP_LANGUAGE=fr
REACT_APP_DEBUG=false
# Configuration sécurité
REACT_APP_ENABLE_2FA=true
REACT_APP_SESSION_TIMEOUT=3600000
# Configuration logs
REACT_APP_LOG_LEVEL=info
REACT_APP_ENABLE_ANALYTICS=false
NEXT_PUBLIC_4NK_URL="http://ihm-client.4nk.local:3003"
NEXT_PUBLIC_FRONT_APP_HOST="http://coffre-front.4nk.local:3000"
NEXT_PUBLIC_IDNOT_BASE_URL="https://qual-connexion.idnot.fr"
NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT="/IdPOAuth2/authorize/idnot_idp_v1"
NEXT_PUBLIC_IDNOT_CLIENT_ID=""
NEXT_PUBLIC_BACK_API_PROTOCOL=http://
NEXT_PUBLIC_BACK_API_HOST=coffre-front.4nk.local
NEXT_PUBLIC_BACK_API_PORT=8080
NEXT_PUBLIC_BACK_API_ROOT_URL=/api
NEXT_PUBLIC_BACK_API_VERSION=/v1