You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by wu...@apache.org on 2023/06/26 03:12:04 UTC

[shardingsphere] branch master updated: Make Proxy default config path configurable (#26535)

This is an automated email from the ASF dual-hosted git repository.

wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new e504221d857 Make Proxy default config path configurable (#26535)
e504221d857 is described below

commit e504221d857b87744a040fda7cfb493d25a1e855
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Mon Jun 26 11:11:55 2023 +0800

    Make Proxy default config path configurable (#26535)
    
    https://sonarcloud.io/project/issues?resolved=false&rules=java%3AS1075&id=apache_shardingsphere&open=AYePECdUmlEb3_Pqvlm5
---
 .../org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/bootstrap/src/main/java/org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java b/proxy/bootstrap/src/main/java/org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java
index 8167524dcba..bf1d5c43960 100644
--- a/proxy/bootstrap/src/main/java/org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java
+++ b/proxy/bootstrap/src/main/java/org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java
@@ -36,7 +36,7 @@ import java.util.stream.Collectors;
 @RequiredArgsConstructor
 public final class BootstrapArguments {
     
-    private static final String DEFAULT_CONFIG_PATH = "/conf/";
+    private static final String DEFAULT_CONFIG_PATH = System.getenv().getOrDefault("PROXY_DEFAULT_CONFIG_PATH", "/conf/");
     
     private static final String DEFAULT_BIND_ADDRESS = "0.0.0.0";