Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8407304

Browse files
th37roseludomikula
th37rose
authored andcommitted
Add serverSettings API to public
only save LOWCODER_* env variables to DB
1 parent4ee0e7e commit8407304

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎server/api-service/lowcoder-domain/src/main/java/org/lowcoder/domain/serversetting/service/ServerSettingServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public Flux<ServerSetting> findAll() {
4747
publicvoidsaveEnvironmentVariables() {
4848
Map<String,String>envVariables =System.getenv();
4949
Flux.fromIterable(envVariables.keySet())
50+
.filter(key ->key.contains("LOWCODER_"))
5051
.map(key -> {
5152
Stringvalue =envVariables.getOrDefault(key,"");
5253
if(EXCLUDED_KEYS.contains(key)) {

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/security/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
8989
ServerWebExchangeMatchers.pathMatchers(HttpMethod.HEAD,STATE_URL +"/healthCheck"),
9090
// used in public viewed apps
9191
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET,CONFIG_URL),// system config
92+
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET,SERVER_SETTING_URL),// system env
9293
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET,CONFIG_URL +"/deploymentId"),// system config
9394
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET,APPLICATION_URL +"/*/view"),// application view
9495
ServerWebExchangeMatchers.pathMatchers(HttpMethod.GET,APPLICATION_URL +"/*/view_marketplace"),// application view

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp