diff options
author | zhangfan345 <zhangfan345@huawei.com> | 2022-11-11 14:40:05 +0800 |
---|---|---|
committer | zhangfan345 <zhangfan345@huawei.com> | 2022-11-11 14:40:05 +0800 |
commit | 89039c53eae5a28678e23aa42cadc3b61204330d (patch) | |
tree | 5d2b127f3790a954e8c7c1b1bac9df2b10810a3e | |
parent | 7b8038b57b4b452156b9bd40474d895284e4a330 (diff) |
Support https
Issue-ID: USECASEUI-761
Signed-off-by: zhangfan345 <zhangfan345@huawei.com>
Change-Id: I638fe3cf1e67fc188151e81b5b33d9a115999df9
-rw-r--r-- | intentanalysis/src/main/resources/application.yaml | 5 | ||||
-rw-r--r-- | intentanalysis/src/main/resources/keystore/uuiIntentAnalysis.jks | bin | 0 -> 2182 bytes | |||
-rw-r--r-- | intentanalysis/src/test/resources/application.yaml | 10 | ||||
-rw-r--r-- | intentanalysis/src/test/resources/keystore/uuiIntentAnalysis.jks | bin | 0 -> 2182 bytes |
4 files changed, 10 insertions, 5 deletions
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 Binary files differnew file mode 100644 index 0000000..509d3f2 --- /dev/null +++ b/intentanalysis/src/main/resources/keystore/uuiIntentAnalysis.jks 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 Binary files differnew file mode 100644 index 0000000..509d3f2 --- /dev/null +++ b/intentanalysis/src/test/resources/keystore/uuiIntentAnalysis.jks |