Define environment variables

Create an environment script

Relevant environment variables presets

Make sure to set the proper environment entities (API key, JKSs and passwords) every time you change environment variables file.

UAT check preset

Use this preset to test and monitor integration with UAT environment.

Features:

  • RTD send disabled

  • TAE send enabled

  • Output retention enabled

ACQ_BATCH_SCHEDULED=true
ACQ_BATCH_INPUT_CRON=*/30 * * * * *
ACQ_BATCH_TRX_INPUT_PATH=/workdir/input
ACQ_BATCH_HPAN_INPUT_PATH=/workdir/hpans
ACQ_BATCH_TRX_LOGS_PATH=/workdir/logs
ACQ_BATCH_OUTPUT_PATH=/workdir/output
ACQ_BATCH_SENDER_ADEACK_OUTPUT_PATH=/workdir/ade-errors
ACQ_BATCH_FILE_REPORT_PATH=/workdir/reports
HPAN_SERVICE_URL=https://api.uat.cstar.pagopa.it
HPAN_SERVICE_API_KEY=<YOUR_UAT_API_KEY_HERE>
HPAN_SERVICE_KEY_STORE_FILE=<PATH_TO_UAT_JKS>
HPAN_SERVICE_KEY_STORE_PASSWORD=<UAT_JKS_PASSWORD>
HPAN_SERVICE_TRUST_STORE_FILE=<PATH_TO_UAT_JKS>
HPAN_SERVICE_TRUST_STORE_PASSWORD=<UAT_JKS_PASSWORD>
JAVA_TOOL_OPTIONS=-Xms6g -Xmx6g

ACQ_BATCH_DELETE_OUTPUT_FILE=KEEP
ACQ_BATCH_TRX_SENDER_RTD_ENABLED=false
ACQ_BATCH_TRX_SENDER_ADE_ENABLED=true
PROD check preset

Use this preset to test and monitor integration with PROD environment.

Features:

  • RTD send disabled

  • TAE send disabled

  • Output retention disabled

ACQ_BATCH_SCHEDULED=true
ACQ_BATCH_INPUT_CRON=*/30 * * * * *
ACQ_BATCH_TRX_INPUT_PATH=/workdir/input
ACQ_BATCH_HPAN_INPUT_PATH=/workdir/hpans
ACQ_BATCH_TRX_LOGS_PATH=/workdir/logs
ACQ_BATCH_OUTPUT_PATH=/workdir/output
ACQ_BATCH_SENDER_ADEACK_OUTPUT_PATH=/workdir/ade-errors
ACQ_BATCH_FILE_REPORT_PATH=/workdir/reports
HPAN_SERVICE_URL=https://api.cstar.pagopa.it
HPAN_SERVICE_API_KEY=<YOUR_PROD_API_KEY_HERE>
HPAN_SERVICE_KEY_STORE_FILE=<PATH_TO_PROD_JKS>
HPAN_SERVICE_KEY_STORE_PASSWORD=<PROD_JKS_PASSWORD>
HPAN_SERVICE_TRUST_STORE_FILE=<PATH_TO_PROD_JKS>
HPAN_SERVICE_TRUST_STORE_PASSWORD=<PROD_JKS_PASSWORD>
JAVA_TOOL_OPTIONS=-Xms6g -Xmx6g

ACQ_BATCH_TRX_SENDER_RTD_ENABLED=false
ACQ_BATCH_TRX_SENDER_ADE_ENABLED=false
PROD operating preset

Use this preset during the production activity of the Batch Service.

Only TAE flow will be sent to PagoPA in this way.

Update your configuration by copying the code block below when:

Features:

  • RTD send disabled

  • TAE send enabled

  • Output retention disabled

ACQ_BATCH_SCHEDULED=true
ACQ_BATCH_INPUT_CRON=0 0 * * * *
ACQ_BATCH_TRX_INPUT_PATH=/workdir/input
ACQ_BATCH_HPAN_INPUT_PATH=/workdir/hpans
ACQ_BATCH_TRX_LOGS_PATH=/workdir/logs
ACQ_BATCH_OUTPUT_PATH=/workdir/output
ACQ_BATCH_SENDER_ADEACK_OUTPUT_PATH=/workdir/ade-errors
ACQ_BATCH_FILE_REPORT_PATH=/workdir/reports
HPAN_SERVICE_URL=https://api.cstar.pagopa.it
HPAN_SERVICE_API_KEY=<YOUR_PROD_API_KEY_HERE>
HPAN_SERVICE_KEY_STORE_FILE=<PATH_TO_PROD_JKS>
HPAN_SERVICE_KEY_STORE_PASSWORD=<PROD_JKS_PASSWORD>
HPAN_SERVICE_TRUST_STORE_FILE=<PATH_TO_PROD_JKS>
HPAN_SERVICE_TRUST_STORE_PASSWORD=<PROD_JKS_PASSWORD>
JAVA_TOOL_OPTIONS=-Xms6g -Xmx6g

ACQ_BATCH_TRX_SENDER_RTD_ENABLED=false
ACQ_BATCH_TRX_SENDER_ADE_ENABLED=true

Copy and paste the preset to your environment variables file.

You have to specify the path in docker run command.

Last updated