From d661dbcf431f0f02ecf98f748e3516ba0ab23dff Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Fri, 17 Aug 2018 12:34:58 +0200 Subject: Add seed code. First version based on PRH micro service. Change-Id: Iea1673a8a1961006b1ea98ef245e213e3652eb82 Issue-ID: DCAEGEN2-638 Signed-off-by: elinuxhenrik --- datafile-app-server/config/application.yaml | 22 ++++++++++++ datafile-app-server/config/keystore | Bin 0 -> 2196 bytes datafile-app-server/config/prh_endpoints.json | 47 ++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 datafile-app-server/config/application.yaml create mode 100644 datafile-app-server/config/keystore create mode 100644 datafile-app-server/config/prh_endpoints.json (limited to 'datafile-app-server/config') diff --git a/datafile-app-server/config/application.yaml b/datafile-app-server/config/application.yaml new file mode 100644 index 00000000..6a792346 --- /dev/null +++ b/datafile-app-server/config/application.yaml @@ -0,0 +1,22 @@ +spring: + profiles: + active: prod + main: + web-application-type: none +server: + port: 8433 + ssl: + key-store-type: PKCS12 + key-store-password: nokiapnf + key-store: classpath:keystore.jks + key-password: nokiapnf + keyAlias: tomcat-localhost +logging: + level: + ROOT: ERROR + org.springframework: ERROR + org.springframework.data: ERROR + org.onap.dcaegen2.collectors.datafile: INFO + file: opt/log/application.log +app: + filepath: config/datafile_endpoints.json diff --git a/datafile-app-server/config/keystore b/datafile-app-server/config/keystore new file mode 100644 index 00000000..26a16f75 Binary files /dev/null and b/datafile-app-server/config/keystore differ diff --git a/datafile-app-server/config/prh_endpoints.json b/datafile-app-server/config/prh_endpoints.json new file mode 100644 index 00000000..772d9708 --- /dev/null +++ b/datafile-app-server/config/prh_endpoints.json @@ -0,0 +1,47 @@ +{ + "configs": { + "dmaap": { + "dmaapConsumerConfiguration": { + "dmaapHostName": "localhost", + "dmaapPortNumber": 2222, + "dmaapTopicName": "/events/unauthenticated.SEC_OTHER_OUTPUT", + "dmaapProtocol": "http", + "dmaapUserName": "admin", + "dmaapUserPassword": "admin", + "dmaapContentType": "application/json", + "consumerId": "c12", + "consumerGroup": "OpenDcae-c12", + "timeoutMS": -1, + "messageLimit": 1 + }, + "dmaapProducerConfiguration": { + "dmaapHostName": "localhost", + "dmaapPortNumber": 2223, + "dmaapTopicName": "/events/unauthenticated.PNF_READY", + "dmaapProtocol": "http", + "dmaapUserName": "admin", + "dmaapUserPassword": "admin", + "dmaapContentType": "application/json" + } + }, + "aai": { + "aaiClientConfiguration": { + "aaiHost": "localhost", + "aaiPort": 8080, + "aaiProtocol": "https", + "aaiUserName": "AAI", + "aaiUserPassword": "AAI", + "aaiIgnoreSSLCertificateErrors": true, + "aaiBasePath": "/aai/v12", + "aaiPnfPath": "/network/pnfs/pnf", + "aaiHeaders": { + "X-FromAppId": "datafile", + "X-TransactionId": "9999", + "Accept": "application/json", + "Real-Time": "true", + "Content-Type":"application/merge-patch+json" + } + } + } + } +} \ No newline at end of file -- cgit 1.2.3-korg