chore: 打包程序包变更nms_cxy
64
build/build/etc/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,64 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
# ssl_certificate /usr/share/nginx/cert/www.x.cn_chain.crt;
|
||||
# ssl_certificate_key /usr/share/nginx/cert/www.x.cn.key;
|
||||
|
||||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_dhparam /usr/share/nginx/cert/dhparams.pem;
|
||||
|
||||
# OMC
|
||||
location / {
|
||||
root /usr/share/nginx/html/dist;
|
||||
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /omc-api/ {
|
||||
proxy_pass http://192.168.5.57:33030/;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
}
|
||||
|
||||
location /api/rest/ {
|
||||
proxy_pass http://192.168.5.57:33030/nms-cxy/api/rest/;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,269 +0,0 @@
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
106,
|
||||
'config.sys.title',
|
||||
'sys.title',
|
||||
'config.sys.titleValue',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.titleRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
107,
|
||||
'config.sys.copyright',
|
||||
'sys.copyright',
|
||||
'config.sys.copyrightValue',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.copyrightRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
108,
|
||||
'config.sys.i18nOpen',
|
||||
'sys.i18n.open',
|
||||
'false',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
NULL,
|
||||
0,
|
||||
'config.sys.i18nOpenRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
109,
|
||||
'Internationalization Default Language',
|
||||
'sys.i18n.default',
|
||||
'en_US',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
'supervisor',
|
||||
1702632906566,
|
||||
'config.sys.i18nDefaultRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_config` (
|
||||
`config_id`,
|
||||
`config_name`,
|
||||
`config_key`,
|
||||
`config_value`,
|
||||
`config_type`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
6,
|
||||
'config.sys.officialUrl',
|
||||
'sys.officialUrl',
|
||||
'https://www.bluearcus.com',
|
||||
'Y',
|
||||
'supervisor',
|
||||
1698110000000,
|
||||
'admin',
|
||||
1700809804330,
|
||||
'config.sys.officialUrlRemark'
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
1660,
|
||||
1660,
|
||||
'config.sys.titleValue',
|
||||
'BlueArcus EMS',
|
||||
'i18n_zh',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
3660,
|
||||
3660,
|
||||
'config.sys.titleValue',
|
||||
'BlueArcus EMS',
|
||||
'i18n_en',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
1661,
|
||||
1661,
|
||||
'config.sys.copyrightValue',
|
||||
'Copyright ©2023 BlueArcus',
|
||||
'i18n_zh',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
REPLACE
|
||||
INTO `omc_db`.`sys_dict_data` (
|
||||
`dict_code`,
|
||||
`dict_sort`,
|
||||
`dict_label`,
|
||||
`dict_value`,
|
||||
`dict_type`,
|
||||
`tag_class`,
|
||||
`tag_type`,
|
||||
`status`,
|
||||
`create_by`,
|
||||
`create_time`,
|
||||
`update_by`,
|
||||
`update_time`,
|
||||
`remark`
|
||||
)
|
||||
VALUES (
|
||||
3661,
|
||||
3661,
|
||||
'config.sys.copyrightValue',
|
||||
'Copyright ©2023 BlueArcus',
|
||||
'i18n_en',
|
||||
NULL,
|
||||
NULL,
|
||||
'1',
|
||||
'supervisor',
|
||||
1699350000000,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
-- set internationalization switching to OFF
|
||||
-- DELETE FROM `omc_db`.`sys_role_menu` WHERE `menu_id` = 2122;
|
||||
UPDATE `omc_db`.`sys_menu`
|
||||
SET
|
||||
`status` = '0'
|
||||
WHERE
|
||||
`menu_id` = 2122;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
@@ -506,4 +506,18 @@ VALUES (
|
||||
0
|
||||
);
|
||||
|
||||
-- 性能数据文件的上报
|
||||
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.performance_upload_oss', 'SYSTEM', 'performance_upload_oss', '{\"interval\":15,\"neTypes\":[\"AMF\",\"UPF\"]}', '0 0/15 * * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710817306404, 'job.nms_cxy.performance_upload_oss_remark');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (210, 210, 'job.nms_cxy.performance_upload_oss', '性能数据文件的上报', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (211, 211, 'job.nms_cxy.performance_upload_oss_remark', 'interval周期为15分钟。neTypes为数组对应上报数据的网元类型。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (212, 212, 'job.nms_cxy.performance_upload_oss', 'Reporting of performance data files', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (213, 213, 'job.nms_cxy.performance_upload_oss_remark', 'The interval period is 15 minutes. neTypes is an array corresponding to the type of network element for which the data was reported.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
|
||||
-- 资源数据上报接口
|
||||
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.resource_upload_oss', 'SYSTEM', 'resource_upload_oss', '{\"interval\":15}', '0 0 0,12 * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710818082110, 'job.nms_cxy.resource_upload_oss_remark');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (215, 215, 'job.nms_cxy.resource_upload_oss', '资源数据上报接口', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (216, 216, 'job.nms_cxy.resource_upload_oss_remark', '每天的 0 时及 12 时上报网元的全量资源数据文件至 OSS。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (217, 217, 'job.nms_cxy.resource_upload_oss', 'Resource data reporting interface', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (218, 218, 'job.nms_cxy.resource_upload_oss_remark', 'Full resource data files for network elements are reported to the OSS at 0000 and 1200 hours each day.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -183,4 +183,19 @@ ADD INDEX IF NOT EXISTS `idx_severity_status` (
|
||||
) USING BTREE;
|
||||
|
||||
ALTER TABLE `omc_db`.`mml_system`
|
||||
ADD COLUMN IF NOT EXISTS `object_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'mml' AFTER `mml_display`;
|
||||
ADD COLUMN IF NOT EXISTS `object_type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'mml' AFTER `mml_display`;
|
||||
|
||||
-- 性能数据文件的上报
|
||||
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.performance_upload_oss', 'SYSTEM', 'performance_upload_oss', '{\"interval\":15,\"neTypes\":[\"AMF\",\"UPF\"]}', '0 0/15 * * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710817306404, 'job.nms_cxy.performance_upload_oss_remark');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (210, 210, 'job.nms_cxy.performance_upload_oss', '性能数据文件的上报', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (211, 211, 'job.nms_cxy.performance_upload_oss_remark', 'interval周期为15分钟。neTypes为数组对应上报数据的网元类型。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (212, 212, 'job.nms_cxy.performance_upload_oss', 'Reporting of performance data files', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (213, 213, 'job.nms_cxy.performance_upload_oss_remark', 'The interval period is 15 minutes. neTypes is an array corresponding to the type of network element for which the data was reported.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
|
||||
-- 资源数据上报接口
|
||||
INSERT IGNORE INTO `sys_job` (`job_name`, `job_group`, `invoke_target`, `target_params`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `save_log`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('job.nms_cxy.resource_upload_oss', 'SYSTEM', 'resource_upload_oss', '{\"interval\":15}', '0 0 0,12 * * ?', '3', '0', '1', '1', 'supervisor', 1698478134839, 'supervisor', 1710818082110, 'job.nms_cxy.resource_upload_oss_remark');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (215, 215, 'job.nms_cxy.resource_upload_oss', '资源数据上报接口', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (216, 216, 'job.nms_cxy.resource_upload_oss_remark', '每天的 0 时及 12 时上报网元的全量资源数据文件至 OSS。', 'i18n_zh', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (217, 217, 'job.nms_cxy.resource_upload_oss', 'Resource data reporting interface', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
INSERT IGNORE INTO `sys_dict_data` VALUES (218, 218, 'job.nms_cxy.resource_upload_oss_remark', 'Full resource data files for network elements are reported to the OSS at 0000 and 1200 hours each day.', 'i18n_en', '', '', '1', 'supervisor', 1705550000000, '', 0, '');
|
||||
|
||||
|
||||