From 36dc747e18459e286a4d3161f09640f853f6d236 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Sep 2025 00:53:47 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20des=20configurations=20d?= =?UTF-8?q?es=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- modules/blindbit/conf/blindbit.toml | 26 ++++---- modules/ihm_client/conf/config.ts | 7 --- modules/ihm_client/conf/config.ts.exemple | 7 --- .../{sdk_signer.conf.exemple => .env.exemple} | 2 +- .../sdk_storage/conf/sdk_storage.conf.exemple | 6 +- .../lecoffre-back-mini/conf/.env.exemple | 62 ++++++++++++++----- .../lecoffre/lecoffre-front/conf/.env.exemple | 41 +++--------- 7 files changed, 75 insertions(+), 76 deletions(-) delete mode 100644 modules/ihm_client/conf/config.ts delete mode 100644 modules/ihm_client/conf/config.ts.exemple rename modules/sdk_signer/conf/{sdk_signer.conf.exemple => .env.exemple} (93%) diff --git a/modules/blindbit/conf/blindbit.toml b/modules/blindbit/conf/blindbit.toml index 1124bbf5..1968aa40 100644 --- a/modules/blindbit/conf/blindbit.toml +++ b/modules/blindbit/conf/blindbit.toml @@ -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 \ No newline at end of file +tweaks_cut_through_with_dust_filter=0 \ No newline at end of file diff --git a/modules/ihm_client/conf/config.ts b/modules/ihm_client/conf/config.ts deleted file mode 100644 index 755e827a..00000000 --- a/modules/ihm_client/conf/config.ts +++ /dev/null @@ -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; \ No newline at end of file diff --git a/modules/ihm_client/conf/config.ts.exemple b/modules/ihm_client/conf/config.ts.exemple deleted file mode 100644 index 755e827a..00000000 --- a/modules/ihm_client/conf/config.ts.exemple +++ /dev/null @@ -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; \ No newline at end of file diff --git a/modules/sdk_signer/conf/sdk_signer.conf.exemple b/modules/sdk_signer/conf/.env.exemple similarity index 93% rename from modules/sdk_signer/conf/sdk_signer.conf.exemple rename to modules/sdk_signer/conf/.env.exemple index 0d9276fb..67d262b7 100644 --- a/modules/sdk_signer/conf/sdk_signer.conf.exemple +++ b/modules/sdk_signer/conf/.env.exemple @@ -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 diff --git a/modules/sdk_storage/conf/sdk_storage.conf.exemple b/modules/sdk_storage/conf/sdk_storage.conf.exemple index eb93dc17..2915892c 100644 --- a/modules/sdk_storage/conf/sdk_storage.conf.exemple +++ b/modules/sdk_storage/conf/sdk_storage.conf.exemple @@ -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é diff --git a/projects/lecoffre/lecoffre-back-mini/conf/.env.exemple b/projects/lecoffre/lecoffre-back-mini/conf/.env.exemple index 36f6bf1a..790ea2d4 100644 --- a/projects/lecoffre/lecoffre-back-mini/conf/.env.exemple +++ b/projects/lecoffre/lecoffre-back-mini/conf/.env.exemple @@ -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" \ No newline at end of file diff --git a/projects/lecoffre/lecoffre-front/conf/.env.exemple b/projects/lecoffre/lecoffre-front/conf/.env.exemple index 716aed32..d6067881 100644 --- a/projects/lecoffre/lecoffre-front/conf/.env.exemple +++ b/projects/lecoffre/lecoffre-front/conf/.env.exemple @@ -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 \ No newline at end of file