Skip to content

Commit 8407304

Browse files
th37roseludomikula
th37rose
authored andcommitted
Add serverSettings API to public
only save LOWCODER_* env variables to DB
1 parent 4ee0e7e commit 8407304

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
public void saveEnvironmentVariables() {
4848
Map<String, String> envVariables = System.getenv();
4949
Flux.fromIterable(envVariables.keySet())
50+
.filter(key -> key.contains("LOWCODER_"))
5051
.map(key -> {
5152
String value = 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)