Added support for using oauth token for Kafka
[nonrtric/plt/ranpm.git] / datafilecollector / config / application.yaml
1 spring:
2   profiles:
3     active: prod
4 management:
5   endpoints:
6     web:
7       exposure:
8         include: "loggers,logfile,health,info,metrics"
9 server:
10   port: 8433
11   ssl:
12       key-store-type: JKS
13       key-store-password: policy_agent
14       key-store: config/keystore.jks
15       key-password: policy_agent
16       key-alias: policy_agent
17 logging:
18   level:
19     ROOT: WARN
20     org.onap: WARN
21     org.springframework: WARN
22     org.springframework.data: WARN
23     org.springframework.web.reactive.function.client.ExchangeFunctions: WARN
24     org.oran.datafile: INFO
25
26   file:
27     name: /var/log/ONAP/application.log
28 app:
29   collected-files-path: "/tmp/oran_datafile/"
30   # Numer of worker threads. Increased number may increase throughput, but will require more executing resources.
31   number-of-worker-treads: 200
32   # KAFKA boostrap servers.
33   # several redundant boostrap servers can be specified, separated by a comma ','.
34    # If the file name is empty, no authorization token is used
35   auth-token-file:
36   kafka:
37     bootstrap-servers: localhost:9092
38     # output topic
39     collected-file-topic: collected-file
40     client-id: datafile-1
41     # input topic
42     file-ready-event-topic: file-ready
43       # Configues if oath2 tokens shall be used. If set to true, auth-token-file must also be configured
44     use-oath-token: false
45     ssl:
46       key-store-type: PEM
47       key-store-location:
48       # key password is needed if the private key is encrypted
49       key-store-password:
50       trust-store-type: PEM
51       trust-store-location:
52   sftp:
53     known-hosts-file-path:
54     strict-host-key-checking: false
55   ssl:
56      key-store-password-file: /opt/app/datafile/config/ftps_keystore.pass
57      key-store: /opt/app/datafile/config/ftps_keystore.p12
58      trust-store-password-file: /opt/app/datafile/config/truststore.pass
59      trust-store: /opt/app/datafile/config/truststore.jks
60   s3:
61     endpointOverride:
62     accessKeyId:
63     secretAccessKey:
64     bucket:
65     locksBucket:
66 springdoc:
67   show-actuator: true
68   swagger-ui.disable-swagger-default-url: true