Skip to content

Commit

Permalink
fix(server): fix region tls conf in initialization (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Mar 6, 2023
1 parent 409312a commit 00d0a6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export class ServerConfig {
return process.env.DEFAULT_REGION_WEBSITE_DOMAIN || 'localhost'
}

static get DEFAULT_REGION_TLS() {
return process.env.DEFAULT_REGION_TLS || 'false'
static get DEFAULT_REGION_TLS(): boolean {
return process.env.DEFAULT_REGION_TLS === 'true'
}

static get DEFAULT_REGION_APISIX_PUBLIC_PORT() {
Expand Down
2 changes: 1 addition & 1 deletion server/src/initializer/initializer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class InitializerService {
data: {
name: 'default',
displayName: 'Default',
tls: false,
tls: ServerConfig.DEFAULT_REGION_TLS,
clusterConf: {
driver: 'kubernetes',
},
Expand Down

0 comments on commit 00d0a6e

Please sign in to comment.