From ad67009dbf42ae18cb6650c6f74599dac678c291 Mon Sep 17 00:00:00 2001 From: jinxin wang Date: Wed, 31 May 2023 13:50:15 +0800 Subject: [PATCH] Add startup environment variable --- env/custom-application-config.env | 5 ++++- example/standalone-derby.yaml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/env/custom-application-config.env b/env/custom-application-config.env index 64ca0b0..d7d20d5 100644 --- a/env/custom-application-config.env +++ b/env/custom-application-config.env @@ -1,3 +1,6 @@ PREFER_HOST_MODE=hostname MODE=standalone -SPRING_DATASOURCE_PLATFORM=mysql \ No newline at end of file +SPRING_DATASOURCE_PLATFORM=mysql +NACOS_AUTH_IDENTITY_KEY=2222 +NACOS_AUTH_IDENTITY_VALUE=2xxx +NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789 \ No newline at end of file diff --git a/example/standalone-derby.yaml b/example/standalone-derby.yaml index f9528fc..ded8f08 100644 --- a/example/standalone-derby.yaml +++ b/example/standalone-derby.yaml @@ -6,6 +6,9 @@ services: environment: - PREFER_HOST_MODE=hostname - MODE=standalone + - NACOS_AUTH_IDENTITY_KEY=serverIdentity + - NACOS_AUTH_IDENTITY_VALUE=security + - NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789 volumes: - ./standalone-logs/:/home/nacos/logs ports: