From 26f16a0980ec63d3e59d70e9b2d72ed7172e4264 Mon Sep 17 00:00:00 2001 From: dev4 Date: Wed, 17 Sep 2025 16:10:30 +0000 Subject: [PATCH] ci: docker_tag=ext --- .dockerignore | 10 ++++ .env.exemple | 119 +++++++++++++++++++++++++++----------- .github/workflows/dev.yml | 42 -------------- 3 files changed, 95 insertions(+), 76 deletions(-) create mode 100644 .dockerignore delete mode 100644 .github/workflows/dev.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..41d0a02 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.git +node_modules +.next +coverage +dist +.DS_Store +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.env* diff --git a/.env.exemple b/.env.exemple index 89f391f..7c0aff0 100644 --- a/.env.exemple +++ b/.env.exemple @@ -1,40 +1,91 @@ -# Configuration backend lecoffre-back-mini -# Variables d'environnement pour le build et le runtime +# Variables d'environnement pour l'application back-end +NODE_OPTIONS=--max-old-space-size=2048 +NODE_ENV=production -# Port du serveur +# Configuration IDNOT +IDNOT_ANNUARY_BASE_URL=https://qual-api.notaires.fr/annuaire +# IDNOT_REDIRECT_URI=http://local.4nkweb.com:3004/authorized-client +IDNOT_REDIRECT_URI=http://local.4nkweb.com:3000/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/annuaire + +# Configuration serveur +APP_HOST=dev4.4nkweb.com PORT=8080 +# API_BASE_URL=https://demo.4nkweb.com/back +API_BASE_URL=https://dev4.4nkweb.com/back +# DEFAULT_STORAGE=https://demo.4nkweb.com/storage +DEFAULT_STORAGE=https://dev4.4nkweb.com/storage -# Configuration ID.not -IDNOT_API_KEY=your_idnot_api_key_here -IDNOT_CLIENT_ID=your_idnot_client_id_here -IDNOT_CLIENT_SECRET=your_idnot_client_secret_here -IDNOT_BASE_URL=https://api.idnot.fr -IDNOT_ANNUARY_BASE_URL=https://annuaire.idnot.fr +# Variables d'environnement pour l'application front-end +# NEXT_PUBLIC_4NK_URL=http://demo.4nkweb.com/ +NEXT_PUBLIC_4NK_URL=https://dev4.4nkweb.com +# NEXT_PUBLIC_FRONT_APP_HOST=https://demo.4nkweb.com +NEXT_PUBLIC_FRONT_APP_HOST=https://dev4.4nkweb.com/lecoffre +NEXT_PUBLIC_FRONT_APP_PORT=443 +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=dev4.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='http://local.4nkweb.com:3004/authorized-client' +NEXT_PUBLIC_ANK_BASE_REDIRECT_URI=https://dev4.4nkweb.com/lecoffre/authorized-client +NEXT_PUBLIC_TARGET_ORIGIN=https://dev4.4nkweb.com/lecoffre +NEXT_PUBLIC_4NK_IFRAME_URL=https://dev4.4nkweb.com +NEXT_PUBLIC_IDNOT_REDIRECT_URI=http://local.4nkweb.com:3000/authorized-client + +NEXT_PUBLIC_DOCAPOSTE_API_URL= +NEXT_PUBLIC_API_URL=https://dev4.4nkweb.com/api +NEXT_PUBLIC_DEFAULT_VALIDATOR_ID=28c9a3a8151bef545ebf700ca5222c63d0031ad593097e95c1de202464304a99 +NEXT_PUBLIC_DEFAULT_STORAGE_URLS=https://dev4.4nkweb.com/storage +NEXT_PUBLIC_HOTJAR_SITE_ID=0 +NEXT_PUBLIC_HOTJAR_VERSION= + +# WS +# RELAY_URLS=wss://demo.4nkweb.com/ws +RELAY_URLS=wss://dev4.4nkweb.com/ws +# SIGNER_WS_URL=https://dev4.4nkweb.com/signer/ +SIGNER_WS_URL=https://dev3.4nkweb.com/signer/ +SIGNER_BASE_URL=https://dev3.4nkweb.com/signer/ + +# IHM URLS +# VITE_BOOTSTRAPURL=http://sdk_relay:8090/ +VITE_BOOTSTRAPURL=https://dev4.4nkweb.com/ws/ + +# Cartes de test Stripe +SUCCES= 4242 4242 4242 4242 #Paiement réussi +DECLINED= 4000 0025 0000 3155 #Paiement refusé + +# ================================= /!\ sensible ======================== + +# Configuration IDNOT +IDNOT_API_KEY=ba557f84-0bf6-4dbf-844f-df2767555e3e +IDNOT_CLIENT_ID=B3CE56353EDB15A9 +IDNOT_CLIENT_SECRET=3F733549E879878344B6C949B366BB5CDBB2DB5B7F7AB7EBBEBB0F0DD0776D1C +NEXT_PUBLIC_IDNOT_CLIENT_ID=B3CE56353EDB15A9 + +# Configuration OVH +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_your_stripe_secret_key_here -STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret_here -STRIPE_STANDARD_SUBSCRIPTION_PRICE_ID=price_your_standard_monthly_price_id -STRIPE_STANDARD_ANNUAL_SUBSCRIPTION_PRICE_ID=price_your_standard_yearly_price_id -STRIPE_UNLIMITED_SUBSCRIPTION_PRICE_ID=price_your_unlimited_monthly_price_id -STRIPE_UNLIMITED_ANNUAL_SUBSCRIPTION_PRICE_ID=price_your_unlimited_yearly_price_id +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 SMS -SMS_FACTOR_TOKEN=your_sms_factor_token_here -OVH_APP_KEY=your_ovh_app_key_here -OVH_APP_SECRET=your_ovh_app_secret_here -OVH_CONSUMER_KEY=your_ovh_consumer_key_here -OVH_SMS_SERVICE_NAME=your_ovh_sms_service_name - -# Configuration Email -MAILCHIMP_API_KEY=your_mailchimp_api_key_here -MAILCHIMP_KEY=your_mailchimp_key_here -MAILCHIMP_LIST_ID=your_mailchimp_list_id_here - -# Configuration SDK Signer -SIGNER_BASE_URL=http://localhost:3001 -SIGNER_API_KEY=your_signer_api_key_here - -# Configuration générale -NODE_ENV=development -LOG_LEVEL=info +SIGNER_API_KEY=your_signer_api_key_here \ No newline at end of file diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml deleted file mode 100644 index 0a382c0..0000000 --- a/.github/workflows/dev.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build and Push to Registry - -on: - push: - branches: [ dev ] - -env: - REGISTRY: git.4nkweb.com - IMAGE_NAME: 4nk/lecoffre-back-mini - -jobs: - build-and-push: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up SSH agent - uses: webfactory/ssh-agent@v0.9.1 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ secrets.USER }} - password: ${{ secrets.TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - push: true - ssh: default - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }} \ No newline at end of file