zhangzhiqiang
2 years ago
6 changed files with 20 additions and 70 deletions
@ -1,53 +0,0 @@ |
|||
package org.nl.config.arthas; |
|||
|
|||
import lombok.Data; |
|||
import org.nl.common.utils.InetAddressUtil; |
|||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* |
|||
* @author hengyunabc 2019-08-29 |
|||
* |
|||
*/ |
|||
@Component |
|||
@ConfigurationProperties(prefix = "arthas") |
|||
@Data |
|||
public class TunnelProperties { |
|||
private Server server; |
|||
private EmbeddedRedis embeddedRedis; |
|||
/** |
|||
* supoort apps.html/agents.html |
|||
*/ |
|||
private boolean enableDetailPages = false; |
|||
|
|||
@Data |
|||
public static class Server { |
|||
/** |
|||
* tunnel server listen host |
|||
*/ |
|||
private String host; |
|||
private int port; |
|||
private boolean ssl; |
|||
private String path = ArthasConstants.DEFAULT_WEBSOCKET_PATH; |
|||
/** |
|||
* 客户端连接的地址。也用于保存到redis里,当部署tunnel server集群里需要。不配置则会自动获取 |
|||
*/ |
|||
private String clientConnectHost = InetAddressUtil.getInetAddress(); |
|||
|
|||
} |
|||
|
|||
|
|||
@Data |
|||
public static class EmbeddedRedis { |
|||
private boolean enabled = false; |
|||
private String host = "127.0.0.1"; |
|||
private int port = 6379; |
|||
private List<String> settings = new ArrayList<String>(); |
|||
|
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue