Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
17 kB
2
Indexable
Never
spring:
  cloud:
    discovery:
      client:
        simple:
          instances:
            gateway-service:
              - uri: http://localhost:8080
            dimensions-service:
              - uri: http://lproc-bib.lwo-dev.by:9002 # http://localhost:8188 || http://lproc-bib.lwo-dev.by:9002
            oauth-provisioning:
              - uri: http://lproc-bib.lwo-dev.by:9007 # http://localhost:8085 || http://lproc-bib.lwo-dev.by:9007
            rates-service:
              - uri: http://lproc-bib.lwo-dev.by:9005 # http://localhost:8083 || http://lproc-bib.lwo-dev.by:9005

  flyway:
    enabled: false
    issuing-baseline-version: 1
    issuing-ws-baseline-version: 1
    #baseline-on-migrate: true
    #baseline-version: 1
    #locations: classpath:db/migration
    #schemas: proc_issuing
    #user: proc_issuing
    #password: proc_issuing
  jpa:
#    properties.hibernate.jdbc.time_zone: UTC
    hibernate.ddl-auto: none
    properties:
      hibernate:
        jdbc:
          batch_size: 100
        order_inserts: true
        generate_statistics: false
        order_updates: true
        format_sql: true
        show_sql: true
        dialect: org.hibernate.dialect.PostgreSQLDialect
  security:
    oauth2:
      resourceserver:
        jwt:
          public-key-location: classpath:lproc-dev-public.pem
          resource-id: issuing-service
          iss: lproc-auth
  datasource:

    issuing-datasource:
      url: jdbc:postgresql://192.168.51.225:5432/lproc_dev_db
      username: proc_issuing
      password: proc_issuing
      driver-class-name: org.postgresql.Driver
      configuration:
        poolName: postgres-issuing-pool
    issuing-ws-datasource:
      url: jdbc:postgresql://192.168.51.225:5432/lproc_dev_db
      username: proc_issuing_ws
      password: proc_issuing_ws
      driver-class-name: org.postgresql.Driver
      configuration:
        poolName: postgres-issuing-ws-pool
    oracle-rtps-datasource:
      driver-class-name: oracle.jdbc.OracleDriver
      url: jdbc:oracle:thin:@192.168.152.182/arxdb
      username: RTPS
      password: rTp$_pw$w
      dialect: org.hibernate.dialect.Oracle12cDialect
      configuration:
        poolName: oracle-rtps-pool
    oracle-cms-datasource:
      driver-class-name: oracle.jdbc.OracleDriver
      url: jdbc:oracle:thin:@192.168.152.182/arxdb
      username: MPCS_TEST
      password: mPc$tSt_pw$w
      dialect: org.hibernate.dialect.Oracle12cDialect
      configuration:
        poolName: oracle-cms-pool
    oracle-retail-datasource:
      driver-class-name: oracle.jdbc.OracleDriver
      url: jdbc:oracle:thin:@192.168.152.181/bris
      username: emi999
      password: eMi111_pWd
      dialect: org.hibernate.dialect.Oracle12cDialect
      configuration:
        poolName: oracle-retail-pool
  kafka:
#    bootstrap-servers: localhost:9093, localhost:10093, localhost:11093
    bootstrap-servers: localhost:9092
    producer:
      value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
#      bootstrap-servers: localhost:9093, localhost:10093, localhost:11093
      bootstrap-servers: localhost:9092
      transaction-id-prefix: ${spring.application.name}-tx.
      properties.spring.json.add.type.headers: true
      ack: -1
    consumer:
      bootstrap-servers: localhost:9092
#      bootstrap-servers: localhost:9093,localhost:10093,localhost:11093
#      bootstrap-servers: 192.168.51.107:9192
      value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
      auto-offset-reset: earliest
      enable-auto-commit: false
      max-poll-records: 2
      properties:
        isolation.level: read_committed
        spring.json.trusted.packages: 'com.lwo.processing.commonapi.kafka.dto,com.lwo.processing.oracle.kafka.dto,com.lwo.processing.issuingservice.kafka.dto'
    listener:
      ack-mode: manual_immediate
  web:
    locale: ru
#    properties:
#      max.block.ms: 3000
#      transaction.timeout.ms: 3000

feign:
  client:
    config:
      default:
        loggerLevel: full

logging:
  config: env/logback.xml
  level:
    root: INFO
    org.apache.coyote.http11.Http11InputBuffer: INFO
    org.apache.kafka: ERROR
    org.springframework.security.web.FilterChainProxy: INFO
    org.springframework.transaction: INFO
    org.springframework.web: INFO
    org.springframework.security: INFO
    org.springframework.security.oauth2: INFO
    org.hibernate.type.descriptor.sql.BasicBinder: TRACE
    org.hibernate.SQL: DEBUG
    c.l.b.log.ContainerLoggingFilter: DEBUG
    com.lwo.processing.commonapi.bean.feign: DEBUG

bean:
  enable:
    FlywaySlaveInitializer: false
    AbstractSchedulerListener: true
    EventProcessingListener: true
    EmailDeliveryListener: true
    EmbossingProcessingDataExportListener: true
    TransactionProcessingListener: true

nConfig213: 5

groups:
  default-abstract-scheduler-consumer: default-abstract_schedule_consumer-issuing_service-groupId
  default-email-delivery-result-consumer: default-email_delivery_result_consumer-groupId
  default-transaction-processing-consumer: default-transaction_processing-groupId
  default-event-processing-consumer: default-event_processing-groupId
  default-embossing-processing-data-export-consumer: default-embossing_processing_data_export-groupId

executor:
  executors:
    eventsImportTaskExecutor:
      name: eventsImportTaskExecutor
      topicName: schedule_events_import
      enable: true
    eventsProcessingTaskExecutor:
      name: eventsProcessingTaskExecutor
      topicName: schedule_events_processing
      enable: true
    eFileTaskExecutor:
      name: eFileTaskExecutor
      topicName: schedule_efiles_import
      enable: true
    transactionFileProcessingTaskExecutor:
      name: transactionFileProcessingTaskExecutor
      topicName: schedule_lwfiles_import
      enable: true
    transactionProcessingTaskExecutor:
      name: transactionProcessingTaskExecutor
      topicName: schedule_lwfiles_processing
      enable: true
    onlineFileExportTaskExecutor:
      name: onlineFileExportTaskExecutor
      topicName: schedule_aisfiles_export
      enable: true
    transactionExportTaskExecutor:
      name: transactionExportTaskExecutor
      topicName: schedule_transaction_export
      enable: true
    statementDistributionTaskExecutor:
      name: statementDistributionTaskExecutor
      topicName: schedule_statement_distribution
      enable: true
    businessDayClosingTaskExecutor:
      name: businessDayClosingTaskExecutor
      topicName: schedule_business_day_closing
      enable: false

outfile:
  path: D:\

vfs:
  enabled: false
  hostname: 192.168.51.125
  port: 21
  username: mpcs_ftp
  password: mPc$_p4ss

input-file:
  path: /lproc
  archive-directory: /lproc/arc
  pattern: "E(\\d|\\D){2}_(\\d|\\D)_(\\d|\\D)+.(\\d|\\D)+"

ais-file:
  path: D:\
  props:
    filename:
      bank-code: "02"
      group-code: "01"
      file-extension: "BC"
    header:
      prefix: "00"
      version: "1.7."
      yymmdd-date-format: "YYMMdd"
      yyyymmddhh24mmss-date-format: "YYYYMMddHHmmss"
    record:
      yyyymmddhh24mmss-date-format: "YYYYMMddHHmmss"
      yymm-date-format: "YYMM"
  error:
    no-data:
      no-data-date-format: "dd.MM.YYYY HH:mm:ss"

lw-file:
  path: D:\
  archive-directory: D:\
  pattern: ([LW][a-zA-Z0-9]{7}\.[a-zA-Z]{2,3})

event-amount-discrepancy-percent: 10

crypto:
  aes:
    secret-key: BeWpNBzknP7z1Wprx/1lM52Bc5elfbRvXNSYsc/ktKA=

base-conversion-rate-currency: 'BYN'

direct-transaction-search-day-period: 150

event-search-day-period: 45

SYSTEM_TOKEN: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwIiwidXNlcl9uYW1lIjoibWFpbnRlbmFuY2UiLCJyb2xlcyI6WyJBZG1pbmlzdHJhdG9yIl0sImlzcyI6Imxwcm9jLWF1dGgiLCJhdXRob3JpdGllcyI6WyJBZG1pbmlzdHJhdG9yIl0sImNsaWVudF9pZCI6InByb2Nlc3Npbmctd2ViLWNsaWVudCIsImF1ZCI6WyJpc3N1aW5nLXNlcnZpY2UiLCJyYXRlcy1zZXJ2aWNlIiwib2F1dGgtcHJvdmlzaW9uaW5nIl0sInVwbiI6Im1haW50ZW5hbmNlIiwic2NvcGUiOlsicmVhZCIsIm9wZW5pZCJdLCJuYW1lIjoi0KLQtdGF0L3QvtC70L7Qs9C40YfQtdGB0LrQuNC5IiwiZXhwIjoyMDE1NDQ5NjU5LCJmYW1pbHlfbmFtZSI6ItCi0LXRhdC90L7Qu9C-0LPQuNGH0LXRgdC60LjQuSIsImlhdCI6MTYxNTQ0OTUzOSwianRpIjoiN2RkZDJjYjgtOTkxZC00NDllLWE4YzItNTI2ZmQxY2M4MzFmIn0.VGeWzPlVZ0jZwyVQFf5hdSS4fe_GT4t_qLALeCS4dX3jcl0Vdx9zpjGgVhjUkHJPSC275jh3O-BhMu2fnieIghU6O5uwuuc9VWOcdxgF8hCO7yOXehgyHaTSpnDO1NXPVXEb8pc0DV7lcy2OMgQ4g1ZDvwCo2JmAe-9RA7eKvPpa7nlRlbJT4oAPYDpx0UIInJjVlU5jr2Uwmlr5Uo16GaSSVbJLo5aKGnZTrJ6uU86pFHvlHHr-iK5vCX-U6LFVy0dm8M2KSOplZQg5_oNTsFGX58ad9SI_PxdZrsToJW5nK9OxfGbcs92n0Q4Yj_BClbEogMVIjheXRSXMTRQsNg

kafka-topics:
  schedule-main:
    name: schedule-main
    partitions: 1
    retention: 345600000
  schedule_rates_import:
    name: schedule_rates_import
    partitions: 1
  schedule_acq_processing:
    name: schedule_acq_processing
    partitions: 1
  schedule-job-event-status:
    name: schedule-job-event-status
    partitions: 1
  schedule_events_import:
    name: schedule_events_import
    partitions: 1
  schedule_events_processing:
    name: schedule_events_processing
    partitions: 1
  rtps-rates-export:
    name: rtps-rates-export
    partitions: 1
  schedule_efiles_import:
    name: schedule_efiles_import
    partitions: 1
  schedule-lwfiles-import:
    name: schedule_lwfiles_import
    partitions: 1
  schedule-lwfiles-processing:
    name: schedule_lwfiles_processing
    partitions: 1
  schedule-aisfiles-export:
    name: schedule_aisfiles_export
    partitions: 1
  schedule-transaction_export:
    name: schedule_transaction_export
    partitions: 1
  email-attachments:
    name: email_attachments
    partitions: 1
  email-delivery-result:
    name: email_delivery_result
    partitions: 1
  schedule-statement-distribution:
    name: schedule_statement_distribution
    partitions: 1
  business-day-closing:
    name: schedule_business_day_closing
    partitions: 1
  event-processing:
    name: event_processing
    partitions: 16
  transaction-processing:
    name: transaction_processing
    partitions: 16
  embossing-processing-data-export:
    name: embossing_processing_data_export
    partitions: 1



security-props:
  resource-matchers:
    - method: POST
      path: /cardNumberConversion

    - method: POST
      path: /customers
      #access: hasAuthority('ADMIN_PRIVILEGE')

    - method: GET
      path: /customers/{customerId}
      #access: hasAuthority('ADMIN_PRIVILEGE')

    - method: PUT
      path: /customers
      #access: hasAuthority('ADMIN_PRIVILEGE')

    - method: GET
      path: /customers
      #access: hasAuthority('ADMIN_PRIVILEGE')

    - method: POST
      path: /contracts

    - method: GET
      path: /accounts

    - method: GET
      path: /chip-designs

    - method: GET
      path: /emv-applications

    - method: GET
      path: /emv-applications/{binId}

    - method: DELETE
      path: /emv-applications/{binId}

    - method: POST
      path: /emv-applications

    - method: PUT
      path: /emv-applications

    - method: PUT
      path: /emv-applications/**

    - method: DELETE
      path: /customers/{customerId}

    - method: GET
      path: /bins

    - method: GET
      path: /bins/{binId}

    - method: POST
      path: /bins

    - method: PUT
      path: /bins

    - method: POST
      path: /card

    - method: POST
      path: /cards

    - method: GET
      path: /cards/**

    - method: PUT
      path: /contracts

    - method: DELETE
      path: /contracts/{contractId}

    - method: GET
      path: /contracts/{contractId}

    - method: DELETE
      path: /bins/{binId}

    - method: DELETE
      path: /emv-applications/{emvAppId}

    - method: POST
      path: /emv-applications

    - method: PUT
      path: /emv-applications

    - method: GET
      path: /emv-applications/{emvAppId}

    - method: GET
      path: /contracts

    - method: GET
      path: /card-custom-attrs

    - method: POST
      path: /chip-designs

    - method: PUT
      path: /chip-designs

    - method: GET
      path: /chip-designs/{chipDesignId}

    - method: DELETE
      path: /chip-designs/{chipDesignId}

    - method: GET
      path: /inputFilesForImport

    - method: POST
      path: /importFiles

    - method: PUT
      path: /accounts

    - method: DELETE
      path: /accounts/{accountId}

    - method: GET
      path: /outFiles

    - method: GET
      path: /eFiles

    - method: PUT
      path: /cards

    - method: DELETE
      path: /cards/{cardId}

    - method: POST
      path: /importLwFiles

    - method: GET
      path: /inputLwFilesForImport

    - method: GET
      path: /lwFiles

    - method: POST
      path: /internal/**

    - method: PUT
      path: /internal/**

    - method: PUT
      path: /cards/{cardId}/status

    - method: GET
      path: /unprocessedTransactions

    - method: GET
      path: /transactionsProcessing

    - method: POST
      path: /transactionsProcessing

    - method: GET
      path: /transactionsProcessing/{procId}

    - method: GET
      path: /unprocessedEvents

    - method: GET
      path: /eventsProcessing

#    - method: POST
#      path: /eventsProcessing

    - method: GET
      path: /eventsProcessing/{procId}

    - method: POST
      path: /commissionTypes

    - method: PUT
      path: /commissionTypes

    - method: GET
      path: /commissionTypes/{commissionTypeId}

    - method: GET
      path: /commissionTypes

    - method: DELETE
      path: /commissionTypes/{commissionTypeId}

    - method: GET
      path: /conditionCollectingCommissions

    - method: GET
      path: /conditionCollectingCommissionsByCommissionTypeId/{commissionTypeId}

    - method: POST
      path: /commission

    - method: POST
      path: /commission/list

    - method: PUT
      path: /commission

    - method: PUT
      path: /commission/list

    - method: DELETE
      path: /commission/{commissionId}

    - method: DELETE
      path: /commission

    - method: GET
      path: /commissions

    - method: GET
      path: /unusedCommissions

    - method: POST
      path: /localizationTransactionParams

    - method: PUT
      path: /localizationTransactionParams

    - method: DELETE
      path: /localizationTransactionParams/{localizationTransactionParamId}

    - method: GET
      path: /localizationTransactionParams/{localizationTransactionParamId}

    - method: GET
      path: /localizationTransactionParams/list

    - method: GET
      path: /localizationTransactionParams

    - method: GET
      path: /transactions

    - method: GET
      path: /transactions/{transactionId}/events

    - method: GET
      path: /cards/{cardId}/events

    - method: POST
      path: /events/manualUnblocking

    - method: GET
      path: /settings/EMAIL_STATEMENT

    - method: PUT
      path: /settings/EMAIL_STATEMENT

    - method: POST
      path: /sendStatements

    - method: GET
      path: /embCards

    - method: GET
      path: /embCardsWithClientInfo

    - method: GET
      path: /embCardsBankList

    - method: POST
      path: /commission/sendAll

  resource-ignoring:
    - method: POST
      path: /eventsProcessing

    - method: GET
      path: /accounts/{accountId}/statement

    - method: GET
      path: /swagger-ui.html

    - method: GET
      path: /test-api

    - method: GET
      path: /swagger-ui/**

    - method: GET
      path: /v3/api-docs/**

    - method: POST
      path: /outFile

    - method: POST
      path: /aisFileByPeriod

    - method: POST
      path: /aisFileFull

    - method: GET
      path: /aisFiles

    - method: GET
      path: /inputFilesForImport

    - method: GET
      path: /inputLwFilesForImport

    - method: DELETE
      path: /customers/{customerId}

    - method: POST
      path: /cards

    - method: GET
      path: /cards/{cardID}/statement

    - method: POST
      path: /internal/transactions

    - method: POST
      path: /importFiles

    - method: POST
      path: /importLwFiles

    - method: GET
      path: /actuator/**

#    - method: GET
#      path: /bins
#
#    - method: GET
#      path: /bins/{binId}
#
#    - method: POST
#      path: /bins
#
#    - method: PUT
#      path: /bins
#
#    - method: GET
#      path: /bins
#
#    - method: GET
#      path: /bins/{binId}
#
#    - method: POST
#      path: /bins
#
#    - method: PUT
#      path: /bins

  privileges:
    Administrator:
      - ADMIN_PRIVILEGE

management:
  endpoints:
    web:
      exposure:
        include: "metrics, health"

server:
  tomcat:
    mbeanregistry:
      enabled: true
Leave a Comment