提交 efae51c5 编写于 作者: Z zhangxin10

1. 添加Auth的环境变量的配置

上级 2beff890
......@@ -6,6 +6,8 @@ public class Config {
public static String USER_ID = "";
public static String APPLICATION_CODE = "";
public static String AUTH_SYSTEM_ENV_NAME = "SKYWALKING_RUN";
}
public static class BuriedPoint {
......
......@@ -21,7 +21,8 @@ public class ConfigInitializer {
Properties properties = new Properties();
properties.load(inputStream);
initNextLevel(properties, Config.class, new ConfigDesc());
AuthDesc.isAuth = true;
AuthDesc.isAuth = Boolean.valueOf(System.getenv(Config.SkyWalking.AUTH_SYSTEM_ENV_NAME));
logger.log(Level.ALL, "skywalking auth check : " + AuthDesc.isAuth);
} catch (IllegalAccessException e) {
logger.log(Level.ALL, "Parsing certification file failed, buried won't work");
} catch (IOException e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册