align for IA

This commit is contained in:
Nicolas Cantu 2025-09-23 22:42:23 +00:00
parent 0517aaaee5
commit 201a15796d
6 changed files with 82 additions and 72 deletions

View File

@ -15,50 +15,19 @@ NODE_ENV=production
RUST_LOG=DEBUG RUST_LOG=DEBUG
NODE_OPTIONS=--max-old-space-size=2048 NODE_OPTIONS=--max-old-space-size=2048
# Configuration IDNOT
IDNOT_ANNUARY_BASE_URL=https://qual-api.notaires.fr/annuaire
IDNOT_REDIRECT_URI=https:///lecoffre/authorized-client
IDNOT_TOKEN_URL=https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1
IDNOT_API_BASE_URL=https://qual-api.notaires.fr
# Configuration serveur # Configuration serveur
APP_HOST=dev4.4nkweb.com APP_HOST=dev4.4nkweb.com
API_BASE_URL=https://${DOMAIN}/back API_BASE_URL=https://${DOMAIN}/back
DEFAULT_STORAGE=https://${DOMAIN}/storage DEFAULT_STORAGE=https://${DOMAIN}/storage
# Variables d'environnement pour l'application front-end # Variables d'environnement pour l'application front-end
NEXT_PUBLIC_4NK_URL=https://${DOMAIN}
NEXT_PUBLIC_FRONT_APP_HOST=https://dev4.4nkweb.com/lecoffre
NEXT_PUBLIC_IDNOT_BASE_URL=https://qual-connexion.idnot.fr
NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT=/IdPOAuth2/authorize/idnot_idp_v1
NEXT_PUBLIC_BACK_API_PROTOCOL=https
NEXT_PUBLIC_BACK_API_HOST=${LECOFFRE_BACK_DOMAIN}
NEXT_PUBLIC_BACK_API_PORT=443
NEXT_PUBLIC_BACK_API_ROOT_URL=/api
NEXT_PUBLIC_BACK_API_VERSION=v1
NEXT_PUBLIC_ANK_BASE_REDIRECT_URI=https://${DOMAIN}/lecoffre/authorized-client
NEXT_PUBLIC_TARGET_ORIGIN=https://${DOMAIN}/lecoffre
NEXT_PUBLIC_4NK_IFRAME_URL=https://${DOMAIN}
NEXT_PUBLIC_IDNOT_REDIRECT_URI=https://${DOMAIN}/lecoffre/authorized-client
NEXT_PUBLIC_DOCAPOSTE_API_URL=
NEXT_PUBLIC_API_URL=https://${DOMAIN}/api
NEXT_PUBLIC_DEFAULT_VALIDATOR_ID=28c9a3a8151bef545ebf700ca5222c63d0031ad593097e95c1de202464304a99
NEXT_PUBLIC_DEFAULT_STORAGE_URLS=https://${DOMAIN}/storage
# WS
RELAY_URLS=wss://${DOMAIN}/ws/,wss://${BOOTSTRAP_DOMAIN}/ws/
# SIGNER
SIGNER_WS_URL=ws://${BOOTSTRAP_DOMAIN}:9090
SIGNER_BASE_URL=https://${BOOTSTRAP_DOMAIN}
# IHM URLS # IHM URLS
VITE_BOOTSTRAPURL=wss://${BOOTSTRAP_DOMAIN}/ws/ VITE_BOOTSTRAPURL=wss://dev3.4nkweb.com/ws/
# Cartes de test Stripe # Cartes de test Stripe
SUCCES='4242 4242 4242 4242' SUCCES='4242 4242 4242 4242'
DECLINED='4000 0025 0000 3155' DECLINED='4000 0025 0000 3155'
CORS_ALLOWED_ORIGINS=https://${DOMAIN} CORS_ALLOWED_ORIGINS=https://dev4.4nkweb.com
core_url=http://bitcoin:38332 core_url=http://bitcoin:38332
ws_url=0.0.0.0:8090 ws_url=0.0.0.0:8090
@ -66,21 +35,18 @@ wallet_name=default
network=signet network=signet
blindbit_url=http://blindbit:8000 blindbit_url=http://blindbit:8000
zmq_url=tcp://bitcoin:29000 zmq_url=tcp://bitcoin:29000
storage=https://${DOMAIN}/storage storage=https://dev4.4nkweb.com/storage
data_dir=/home/bitcoin/.4nk data_dir=/home/bitcoin/.4nk
bitcoin_data_dir=/home/bitcoin/.bitcoin bitcoin_data_dir=/home/bitcoin/.bitcoin
bootstrap_url=wss://${BOOTSTRAP_DOMAIN}/ws/ bootstrap_url=wss://dev3.4nkweb.com/ws/
bootstrap_faucet=true bootstrap_faucet=true
# ================== /!\ sensible ========================= # ================== /!\ sensible =========================
# Configuration IDNOT # Configuration IDNOT
IDNOT_API_KEY=ba557f84-0bf6-4dbf-844f-df2767555e3e IDNOT_CLIENT_ID=4501646203F3EF67
IDNOT_CLIENT_ID=B3CE56353EDB15A9
IDNOT_CLIENT_SECRET=3F733549E879878344B6C949B366BB5CDBB2DB5B7F7AB7EBBEBB0F0DD0776D1C IDNOT_CLIENT_SECRET=3F733549E879878344B6C949B366BB5CDBB2DB5B7F7AB7EBBEBB0F0DD0776D1C
NEXT_PUBLIC_IDNOT_CLIENT_ID=B3CE56353EDB15A9
SIGNER_API_KEY=your-api-key-change-this
VITE_JWT_SECRET_KEY=52b3d77617bb00982dfee15b08effd52cfe5b2e69b2f61cc4848cfe1e98c0bc9 VITE_JWT_SECRET_KEY=52b3d77617bb00982dfee15b08effd52cfe5b2e69b2f61cc4848cfe1e98c0bc9
# Configuration pour réduire les traces Docker # Configuration pour réduire les traces Docker
@ -90,9 +56,12 @@ COMPOSE_LOG_LEVEL=WARNING
# =========================================== # ===========================================
# VARIABLES(manquantes) # VARIABLES(manquantes)
# =========================================== # ===========================================
SIGNER_WS_URL=ws://dev3.4nkweb.com:9090
SIGNER_BASE_URL=https://dev3.4nkweb.com
SIGNER_API_KEY=your-api-key-change-this
SIGNER_PORT=9090 SIGNER_PORT=9090
SIGNER_DATABASE_PATH=./data/server.db SIGNER_DATABASE_PATH=./data/server.db
SIGNER_RELAY_URLS=wss://${DOMAIN}/ws/,wss://${BOOTSTRAP_DOMAIN}/ws/ SIGNER_RELAY_URLS=wss://dev4.4nkweb.com/ws/,wss://dev3.4nkweb.com/ws/
SIGNER_AUTO_RESTART=true SIGNER_AUTO_RESTART=true
SIGNER_MAX_RESTARTS=3 SIGNER_MAX_RESTARTS=3
SIGNER_LOG_LEVEL=info SIGNER_LOG_LEVEL=info
@ -100,26 +69,26 @@ SIGNER_LOG_LEVEL=info
# =========================================== # ===========================================
# VARIABLES SDK_RELAY (formatées pour docker-compose) # VARIABLES SDK_RELAY (formatées pour docker-compose)
# =========================================== # ===========================================
RELAY_URLS=wss://dev4.4nkweb.com/ws/,wss://dev3.4nkweb.com/ws/
SDK_RELAY_CORE_URL=http://bitcoin:38332 SDK_RELAY_CORE_URL=http://bitcoin:38332
SDK_RELAY_WS_URL=0.0.0.0:8090 SDK_RELAY_WS_URL=0.0.0.0:8090
SDK_RELAY_WALLET_NAME=default SDK_RELAY_WALLET_NAME=default
SDK_RELAY_NETWORK=signet SDK_RELAY_NETWORK=signet
SDK_RELAY_ZMQ_URL=tcp://bitcoin:29000 SDK_RELAY_ZMQ_URL=tcp://bitcoin:29000
SDK_RELAY_STORAGE=https://${DOMAIN}/storage SDK_RELAY_STORAGE=https://dev4.4nkweb.com/storage
SDK_RELAY_DATA_DIR=/app/.4nk SDK_RELAY_DATA_DIR=/app/.4nk
SDK_RELAY_BITCOIN_DATA_DIR=/app/.bitcoin SDK_RELAY_BITCOIN_DATA_DIR=/app/.bitcoin
SDK_RELAY_BOOTSTRAP_URL=wss://${BOOTSTRAP_DOMAIN}/ws/ SDK_RELAY_BOOTSTRAP_URL=wss://dev3.4nkweb.com/ws/
SDK_RELAY_BOOTSTRAP_FAUCET=true SDK_RELAY_BOOTSTRAP_FAUCET=true
SDK_RELAY_BLINDBIT_URL=http://blindbit-oracle:8000 SDK_RELAY_BLINDBIT_URL=http://blindbit-oracle:8000
# =========================================== # ===========================================
# VARIABLES IHM_CLIENT (formatées pour docker-compose) # VARIABLES IHM_CLIENT (formatées pour docker-compose)
# =========================================== # ===========================================
VITE_API_BASE_URL=https://${DOMAIN}/back/api/v1 VITE_API_BASE_URL=https://dev3.4nkweb.com/back/api/v1
VITE_WS_URL=wss://${DOMAIN}/ws/ VITE_WS_URL=wss://dev4.4nkweb.com/ws/
VITE_STORAGE_URL=https://${DOMAIN}/storage VITE_STORAGE_URL=https://dev4.4nkweb.com/storage
VITE_SIGNER_URL=https://${DOMAIN}/signer VITE_SIGNER_URL=https://dev3.4nkweb.com/signer
# =========================================== # ===========================================
# VARIABLES MONITORING # VARIABLES MONITORING
@ -143,21 +112,69 @@ NODE_ENV=production
# Public URLs # Public URLs
NEXT_PUBLIC_4NK_IFRAME_URL=https://dev4.4nkweb.com NEXT_PUBLIC_4NK_IFRAME_URL=https://dev4.4nkweb.com
NEXT_PUBLIC_4NK_URL=https://dev4.4nkweb.com
NEXT_PUBLIC_FRONT_APP_HOST=https://dev4.4nkweb.com/lecoffre
# Backend API (via dev4 Nginx proxying to dev3)
NEXT_PUBLIC_BACK_API_PROTOCOL=https
NEXT_PUBLIC_BACK_API_HOST=dev4.4nkweb.com
NEXT_PUBLIC_BACK_API_PORT=443
NEXT_PUBLIC_BACK_API_ROOT_URL=/api
NEXT_PUBLIC_BACK_API_VERSION=v1
# IdNot # IdNot
NEXT_PUBLIC_IDNOT_BASE_URL=https://qual-connexion.idnot.fr
NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT=/IdPOAuth2/authorize/
# NEXT_PUBLIC_IDNOT_CLIENT_ID is expected to be set in image/secrets
NEXT_PUBLIC_IDNOT_REDIRECT_URI_FIXED=http://local.4nkweb.com:3000/authorized-client NEXT_PUBLIC_IDNOT_REDIRECT_URI_FIXED=http://local.4nkweb.com:3000/authorized-client
# Back base for state endpoint (dev3) # Back base for state endpoint (dev3)
NEXT_PUBLIC_BACK_BASE=https://dev3.4nkweb.com NEXT_PUBLIC_BACK_BASE=https://dev3.4nkweb.com
OVH_APP_KEY=5ab0709bbb65ef26
OVH_APP_SECRET=de1fac1779d707d263a611a557cd5766
OVH_CONSUMER_KEY=5fe817829b8a9c780cfa2354f8312ece
OVH_SMS_SERVICE_NAME=sms-tt802880-1
# Configuration SMS Factor
SMS_FACTOR_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI4NzgzNiIsImlhdCI6MTcwMTMzOTY1Mi45NDUzOH0.GNoqLb5MDBWuniNlQjbr1PKolwxGqBZe_tf4IMObvHw
#Configuration Mailchimp
MAILCHIMP_API_KEY=md-VVfaml-ApIV4nsGgaJKl0A
MAILCHIMP_KEY=3fa54304bc766dfd0b8043a827b28a3a-us17
MAILCHIMP_LIST_ID=a48d9ad852
#Configuration Stripe
STRIPE_SECRET_KEY=sk_test_51OwKmMP5xh1u9BqSeFpqw0Yr15hHtFsh0pvRGaE0VERhlYtvw33ND1qiGA6Dy1DPmmV61B6BqIimlhuv7bwElhjF00PLQwD60n
STRIPE_WEBHOOK_SECRET=
STRIPE_STANDARD_SUBSCRIPTION_PRICE_ID=price_1P66fuP5xh1u9BqSHj0O6Uy3
STRIPE_STANDARD_ANNUAL_SUBSCRIPTION_PRICE_ID=price_1P9NsRP5xh1u9BqSFgkUDbQY
STRIPE_UNLIMITED_SUBSCRIPTION_PRICE_ID=price_1P66RqP5xh1u9BqSuUzkQNac
STRIPE_UNLIMITED_ANNUAL_SUBSCRIPTION_PRICE_ID=price_1P9NpKP5xh1u9BqSApFogvUB
# Configuration serveur
APP_HOST=http://localhost
PORT=8080
# Configuration back-end
IDNOT_CLIENT_ID=4501646203F3EF67
IDNOT_CLIENT_SECRET=3F733549E879878344B6C949B366BB5CDBB2DB5B7F7AB7EBBEBB0F0DD0776D1C
IDNOT_REDIRECT_URI=https://dev4.4nkweb.com/lecoffre/authorized-client
IDNOT_TOKEN_URL=https://qual-connexion.idnot.fr/user/IdPOAuth2/token/idnot_idp_v1
IDNOT_API_BASE_URL=https://qual-api.notaires.fr
# Configuration front-end
NEXT_PUBLIC_4NK_URL=https://dev4.4nkweb.com
NEXT_PUBLIC_FRONT_APP_HOST=https://dev4.4nkweb.com/lecoffre
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=4501646203F3EF67
NEXT_PUBLIC_BACK_API_PROTOCOL=https
NEXT_PUBLIC_BACK_API_HOST=dev3.4nkweb.com
NEXT_PUBLIC_BACK_API_PORT=443
NEXT_PUBLIC_BACK_API_ROOT_URL=/api
NEXT_PUBLIC_BACK_API_VERSION=v1
NEXT_PUBLIC_ANK_BASE_REDIRECT_URI=https://dev4.4nkweb.com/lecoffre/authorized-client
NEXT_PUBLIC_TARGET_ORIGIN=https://dev4.4nkweb.com/lecoffre
NEXT_PUBLIC_IDNOT_REDIRECT_URI=https://dev4.4nkweb.com/lecoffre/authorized-client
NEXT_PUBLIC_DOCAPOSTE_API_URL=
NEXT_PUBLIC_API_URL=https://dev3.4nkweb.com/api
NEXT_PUBLIC_DEFAULT_VALIDATOR_ID=28c9a3a8151bef545ebf700ca5222c63d0031ad593097e95c1de202464304a99
NEXT_PUBLIC_DEFAULT_STORAGE_URLS=https://dev4.4nkweb.com/storage
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='ba557f84-0bf6-4dbf-844f-df2767555e3e'

View File

@ -179,7 +179,7 @@ server {
# favicon # favicon
location = /favicon.ico { location = /favicon.ico {
root /home/debian/lecoffre_node/conf/nginx/assets; root /home/debian/4NK_env/lecoffre_node/conf/nginx/assets;
try_files /favicon.ico =404; try_files /favicon.ico =404;
} }

View File

@ -216,7 +216,7 @@ server {
# favicon # favicon
location = /favicon.ico { location = /favicon.ico {
root /home/debian/lecoffre_node/conf/nginx/assets; root /home/debian/4NK_env/lecoffre_node/conf/nginx/assets;
try_files /favicon.ico =404; try_files /favicon.ico =404;
access_log off; access_log off;
expires 30d; expires 30d;

View File

@ -48,3 +48,4 @@ autorestart=false
startsecs=0 startsecs=0
exitcodes=0 exitcodes=0
user=root user=root

View File

@ -204,7 +204,7 @@ services:
env_file: env_file:
- .env.master - .env.master
ports: ports:
- "0.0.0.0:3004:3000" - "0.0.0.0:3004:8080"
volumes: volumes:
- ./logs/lecoffre-front:/var/log/lecoffre-front - ./logs/lecoffre-front:/var/log/lecoffre-front
networks: networks:
@ -300,16 +300,7 @@ services:
labels: labels:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped restart: unless-stopped
environment: # All SIGNER_* variables are provided via env_file (.env.master)
- PORT=${SIGNER_PORT}
- API_KEY=${SIGNER_API_KEY}
- DATABASE_PATH=${SIGNER_DATABASE_PATH}
- RELAY_URLS=${SIGNER_RELAY_URLS}
- AUTO_RESTART=${SIGNER_AUTO_RESTART}
- MAX_RESTARTS=${SIGNER_MAX_RESTARTS}
- LOG_LEVEL=${SIGNER_LOG_LEVEL}
- SIGNER_WS_URL=ws://dev3.4nkweb.com:9090
- SIGNER_BASE_URL=https://dev3.4nkweb.com
sdk_storage: sdk_storage:
image: git.4nkweb.com/4nk/sdk_storage:ext image: git.4nkweb.com/4nk/sdk_storage:ext

View File

@ -76,3 +76,4 @@ log "🔧 Gestion du conteneur:"
log " - Arrêt: docker stop lecoffre-node-master" log " - Arrêt: docker stop lecoffre-node-master"
log " - Redémarrage: docker restart lecoffre-node-master" log " - Redémarrage: docker restart lecoffre-node-master"
log " - Logs: docker logs lecoffre-node-master" log " - Logs: docker logs lecoffre-node-master"