| ximon-admin/src/main/java/com/sandu/ximon/admin/config/VnnoxConstant.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ximon-admin/src/main/resources/application-dev.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ximon-admin/src/main/resources/application-local.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ximon-admin/src/main/resources/application-prod.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ximon-admin/src/main/java/com/sandu/ximon/admin/config/VnnoxConstant.java
@@ -1,8 +1,12 @@ package com.sandu.ximon.admin.config; import com.google.gson.Gson; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; public class VnnoxConstant { @Component public class VnnoxConstant implements InitializingBean { // VNNOX MINIO save bucket suffix(companyId) public static final String MINIO_PREFIX = "vnnox."; @@ -18,13 +22,38 @@ public static final Long SCREEN_SHOT_TIMEOUT = 30 * 60L; public static final Long STATUS_TIME = 3 * 60 * 60L; public static final String NOTIFY_URL = "http://112.74.63.130:20017/serv/vnnox/progress"; public static final String SCREEN_SHOT_NOTIFY_URL = "http://112.74.63.130:20017/serv/vnnox/screenshot"; // TODO è¦æ¹ public static final String STATUS_NOTIFY_URL = "http://112.74.63.130:20017/serv/vnnox/asyncStatus"; // TODO è¦æ¹ @Value("${nova-conf.notify-url}") private String notifyUrl; @Value("${nova-conf.screen-shot-notify-url}") private String screenShotNotifyUrl; @Value("${nova-conf.status-notify-url}") private String statusNotifyUrl; public static String NOTIFY_URL; public static String SCREEN_SHOT_NOTIFY_URL; public static String STATUS_NOTIFY_URL; public static String STATUS_NOTIFY_URL1; public static final String username = "zhxm"; public static final String password = "xm2512209."; public static final Gson GSON = new Gson(); @Override public void afterPropertiesSet() throws Exception { NOTIFY_URL = notifyUrl; SCREEN_SHOT_NOTIFY_URL = screenShotNotifyUrl; STATUS_NOTIFY_URL = statusNotifyUrl; System.out.println(STATUS_NOTIFY_URL); } public static void main(String[] args) { System.out.println(VnnoxConstant.SCREEN_SHOT_NOTIFY_URL); } } ximon-admin/src/main/resources/application-dev.yml
@@ -48,3 +48,23 @@ secretKey: zhxm2512209 secure: false nova-conf: #诺ç¦åè° notify-url: http://112.74.63.130:20017/serv/vnnox/progress screen-shot-notify-url: http://112.74.63.130:20017/serv/vnnox/screenshot status-notify-url: http://112.74.63.130:20017/serv/vnnox/asyncStatus # ledå±å¹æå¡å¨å°åï¼æ´æ¹éè¦åæ¶æ´æ¹ï¼ realtime-server: # command: http://101.132.131.91:8081/payload/ # url: http://101.132.131.91:8081/ command: http://112.74.63.130:20018/command/ url: http://112.74.63.130:20018/ server-conf: ip: 47.106.172.9 # 47.106.172.9/101.132.131.91 ximon-admin/src/main/resources/application-local.yml
@@ -39,7 +39,7 @@ enable: true listenter: isOpen: true isOpen: false minio: endpoint: 47.106.172.9 @@ -48,3 +48,21 @@ secretKey: zhxm2512209 secure: false # ledå±å¹æå¡å¨å°åï¼æ´æ¹éè¦åæ¶æ´æ¹ï¼ realtime-server: # command: http://101.132.131.91:8081/payload/ # url: http://101.132.131.91:8081/ command: http://112.74.63.130:20018/command/ url: http://112.74.63.130:20018/ server-conf: ip: 47.106.172.9 # 47.106.172.9/101.132.131.91 nova-conf: #诺ç¦åè° notify-url: http://112.74.63.130:20017/serv/vnnox/progress screen-shot-notify-url: http://112.74.63.130:20017/serv/vnnox/screenshot status-notify-url: http://112.74.63.130:20017/serv/vnnox/asyncStatus ximon-admin/src/main/resources/application-prod.yml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,63 @@ # ç产é ç½®æä»¶ ä¸»æº 39.103.154.108 server: port: 20018 spring: datasource: password: Zhxm2512209 url: jdbc:mysql://127.0.0.1:3306/ximon_light?useUnicode=true&autoReconnect=true&useSSL=false&characterEncoding=utf8&serverTimezone=Asia/Shanghai username: ximon type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver servlet: multipart: location: /www/wwwroot/xm/upload_tmp redis: host: 127.0.0.1 password: zhxm2512209 port: 6379 database: 0 minio: accessKey: minioadmin endpoint: 47.106.172.9 port: 9000 secretKey: zhxm2512209 secure: false realtime-server: command: http://39.103.154.108:20019/command/ url: http://39.103.154.108:20019/ sandu: jwt: header: Authorization # 令çåç¼ token-start-with: Bearer # å¿ é¡»ä½¿ç¨æå°88ä½çBase64对该令çè¿è¡ç¼ç base64-secret: U1GZNSKOH43V19GNIVE8HUYM9H86K657V1D66EAVSL9Q023J4JNWE44BNHCS6V9E66BPKF0KXUI5R1ZOYK2OWZZYALPD07JHOYUROL930UGJQUJDNAEYNTMUS27BHKTJEF9011DGGQ4QT9BN6CM2P9SY2VV2MZKJPCOW9YIGN0VJ # 令çè¿ææ¶é´ æ¤å¤åä½/æ¯«ç§ ï¼å¯å¨æ¤ç½ç«çæ https://www.convertworld.com/zh-hans/time/milliseconds.html 1个æ token-validity-in-seconds: 2629800000 # å¨çº¿ç¨æ·key online-key: online-token # æ¯å¦å¯å¨redisç¼åç¨æ·ä¿¡æ¯ cache-online: false common: urlPrefix: http://112.74.63.130/file/ upload: upload-root-path: /www/wwwroot/xm/file/ quartz: enable: true listenter: #çå¬å¼å ³ isOpen: true server-conf: ip: 39.103.154.108 # 47.106.172.9/101.132.131.91 nova-config: ip: #éå¨ VnnoxConstant ç±»ä¸æ´æ¹ nova-conf: #诺ç¦åè° notify-url: http://39.103.154.108:20018/serv/vnnox/progress screen-shot-notify-url: http://39.103.154.108:20018/serv/vnnox/screenshot status-notify-url: http://39.103.154.108:20018/serv/vnnox/asyncStatus