From 89039c53eae5a28678e23aa42cadc3b61204330d Mon Sep 17 00:00:00 2001 From: zhangfan345 Date: Fri, 11 Nov 2022 14:40:05 +0800 Subject: Support https Issue-ID: USECASEUI-761 Signed-off-by: zhangfan345 Change-Id: I638fe3cf1e67fc188151e81b5b33d9a115999df9 --- intentanalysis/src/main/resources/application.yaml | 5 +++++ .../src/main/resources/keystore/uuiIntentAnalysis.jks | Bin 0 -> 2182 bytes intentanalysis/src/test/resources/application.yaml | 10 +++++----- .../src/test/resources/keystore/uuiIntentAnalysis.jks | Bin 0 -> 2182 bytes 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 intentanalysis/src/main/resources/keystore/uuiIntentAnalysis.jks create mode 100644 intentanalysis/src/test/resources/keystore/uuiIntentAnalysis.jks diff --git a/intentanalysis/src/main/resources/application.yaml b/intentanalysis/src/main/resources/application.yaml index 6db6b46..b4b4d81 100644 --- a/intentanalysis/src/main/resources/application.yaml +++ b/intentanalysis/src/main/resources/application.yaml @@ -2,6 +2,11 @@ server: port: 8083 servlet: context-path: /api/usecaseui-intent-analysis/v1 + ssl: + protocol: TLS + key-store: classpath:keystore/uuiIntentAnalysis.jks + key-store-password: Aa123456 + key-store-type: JKS spring: datasource: url: jdbc:postgresql://${POSTGRES_IP:127.0.0.1}:${POSTGRES_PORT:5432}/${POSTGRES_DB_NAME:intentdb} diff --git a/intentanalysis/src/main/resources/keystore/uuiIntentAnalysis.jks b/intentanalysis/src/main/resources/keystore/uuiIntentAnalysis.jks new file mode 100644 index 0000000..509d3f2 Binary files /dev/null and b/intentanalysis/src/main/resources/keystore/uuiIntentAnalysis.jks differ diff --git a/intentanalysis/src/test/resources/application.yaml b/intentanalysis/src/test/resources/application.yaml index aa317ef..6cbba91 100644 --- a/intentanalysis/src/test/resources/application.yaml +++ b/intentanalysis/src/test/resources/application.yaml @@ -18,11 +18,11 @@ server: port: 8087 ssl: - enabled: ${SSL_ENABLED:false} - key-store: ${SSL_KEY_STORE_PATH:} - key-store-password: ${SSL_KEY_STORE_PASSWORD:} - key-store-type: ${SSL_KEY_STORE_TYPE:} - key-alias: ${SSL_KEY_ALIAS:} + enabled: ${SSL_ENABLED:true} + protocol: TLS + key-store: classpath:keystore/uuiIntentAnalysis.jks + key-store-password: Aa123456 + key-store-type: JKS spring: datasource: url: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;MODE=PostgreSQL diff --git a/intentanalysis/src/test/resources/keystore/uuiIntentAnalysis.jks b/intentanalysis/src/test/resources/keystore/uuiIntentAnalysis.jks new file mode 100644 index 0000000..509d3f2 Binary files /dev/null and b/intentanalysis/src/test/resources/keystore/uuiIntentAnalysis.jks differ -- cgit 1.2.3-korg