diff options
| author | shizhendong <[email protected]> | 2021-05-10 18:23:39 +0800 |
|---|---|---|
| committer | shizhendong <[email protected]> | 2021-05-10 18:23:39 +0800 |
| commit | ed0058ddbc12bd4cb351b762a6c3e5824df4e348 (patch) | |
| tree | 64b5020c3a452b3dfd975e3efdf35d34c57e7dc4 /src | |
| parent | dcde2719b1660938e20e3b4e12b64ceee16cdb98 (diff) | |
fix: 便于打包更改配置文件
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/resources/application-prod.yml | 7 | ||||
| -rw-r--r-- | src/main/resources/application.yml | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index cfadf7b..532cc61 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -10,5 +10,10 @@ confagent: config: /opt/nezha/nz-agent/snmp_exporter/snmp.yml defaultIP: 127.0.0.1 + blackBoxExport: + cmdLine: /opt/nezha/nz-agent/blackbox_exporter/config.conf + config: /opt/nezha/nz-agent/blackbox_exporter/blackbox.yml + defaultIP: 127.0.0.1 + logging: - config: config/logback-spring.xml
\ No newline at end of file + config: config/logback-spring.xml diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a7201c6..dffb319 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,13 +2,13 @@ server: tomcat: uri-encoding: UTF-8 basedir: /opt/nezha/confagent/tmp - port: 8081 + port: 9090 servlet: context-path: /nz-agent spring: profiles: - active: dev + active: prod confagent: tokenFile: token.auth |
