febs_nacos.sql 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : localhost_3306
  4. Source Server Type : MySQL
  5. Source Server Version : 50726
  6. Source Host : localhost:3306
  7. Source Schema : febs_nacos
  8. Target Server Type : MySQL
  9. Target Server Version : 50726
  10. File Encoding : 65001
  11. Date: 14/01/2020 11:05:42
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for config_info
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `config_info`;
  19. CREATE TABLE `config_info` (
  20. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  21. `data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
  22. `group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  23. `content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
  24. `md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
  25. `gmt_create` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '创建时间',
  26. `gmt_modified` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '修改时间',
  27. `src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
  28. `src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
  29. `app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  30. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
  31. `c_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  32. `c_use` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  33. `effect` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  34. `type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  35. `c_schema` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
  36. PRIMARY KEY (`id`) USING BTREE,
  37. UNIQUE INDEX `uk_configinfo_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
  38. ) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info' ROW_FORMAT = Dynamic;
  39. -- ----------------------------
  40. -- Records of config_info
  41. -- ----------------------------
  42. INSERT INTO `config_info` VALUES (8, 'febs-gateway.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n # data:\r\n # mongodb:\r\n # host: ${mongo.url}\r\n # port: 27017\r\n # database: febs_cloud_route\r\n\r\n # redis:\r\n # database: 3\r\n # host: ${redis.url}\r\n # port: 6379\r\n # lettuce:\r\n # pool:\r\n # min-idle: 8\r\n # max-idle: 500\r\n # max-active: 2000\r\n # max-wait: 10000\r\n # timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\nfebs:\r\n gateway:\r\n enhance: false\r\n jwt:\r\n secret: 123456\r\n expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', 'af3f9384f1f960e3a28f7a6770539aaa', '2019-09-18 10:37:02', '2020-01-14 11:05:34', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Gateway微服务配置', 'null', 'null', 'yaml', 'null');
  43. INSERT INTO `config_info` VALUES (15, 'febs-monitor-admin.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8401\r\n\r\nspring:\r\n security:\r\n user:\r\n name: febs\r\n password: 123456\r\n boot:\r\n admin:\r\n ui:\r\n title: ${spring.application.name}', '2347087e64301f1d5e0e9a9410007def', '2019-09-19 09:39:49', '2019-09-19 09:39:49', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Monitor-Admin微服务配置', NULL, NULL, 'yaml', NULL);
  44. INSERT INTO `config_info` VALUES (16, 'febs-auth-dev.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8101\r\nspring:\r\n datasource:\r\n dynamic:\r\n hikari:\r\n connection-timeout: 30000\r\n max-lifetime: 1800000\r\n max-pool-size: 15\r\n min-idle: 5\r\n connection-test-query: select 1\r\n pool-name: FebsHikariCP\r\n primary: base\r\n datasource:\r\n base:\r\n username: root\r\n password: 123456\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://${mysql.url}:3306/febs_cloud_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8\r\n\r\n jackson:\r\n date-format: yyyy-MM-dd HH:mm:ss\r\n time-zone: GMT+8\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n redis:\r\n database: 0\r\n host: ${redis.url}\r\n port: 6379\r\n lettuce:\r\n pool:\r\n min-idle: 8\r\n max-idle: 500\r\n max-active: 2000\r\n max-wait: 10000\r\n timeout: 5000\r\nmybatis-plus:\r\n type-aliases-package: cc.mrbird.febs.common.entity.system\r\n mapper-locations: classpath:mapper/*.xml\r\n configuration:\r\n jdbc-type-for-null: null\r\n global-config:\r\n banner: false\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n\r\njustauth:\r\n enabled: true\r\n type:\r\n github:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n gitee:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n tencent_cloud:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n dingtalk:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n qq:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n microsoft:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n cache:\r\n type: redis\r\n prefix: \'FEBS::CLOUD::SOCIAL::STATE::\'\r\n timeout: 1h\r\n\r\nfebs:\r\n frontUrl: \'http://localhost:9527\'\r\n', 'd8d3bd648700e941dee86f0e3981604c', '2019-09-19 09:56:38', '2019-12-12 10:40:52', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Auth微服务配置(开发环境)', 'null', 'null', 'yaml', 'null');
  45. INSERT INTO `config_info` VALUES (17, 'febs-auth-test.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8102\r\nspring:\r\n datasource:\r\n dynamic:\r\n hikari:\r\n connection-timeout: 30000\r\n max-lifetime: 1800000\r\n max-pool-size: 15\r\n min-idle: 5\r\n connection-test-query: select 1\r\n pool-name: FebsHikariCP\r\n primary: base\r\n datasource:\r\n base:\r\n username: root\r\n password: 123456\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://${mysql.url}:3306/febs_cloud_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8\r\n\r\n jackson:\r\n date-format: yyyy-MM-dd HH:mm:ss\r\n time-zone: GMT+8\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n redis:\r\n database: 0\r\n host: ${redis.url}\r\n port: 6379\r\n lettuce:\r\n pool:\r\n min-idle: 8\r\n max-idle: 500\r\n max-active: 2000\r\n max-wait: 10000\r\n timeout: 5000\r\nmybatis-plus:\r\n type-aliases-package: cc.mrbird.febs.common.entity.system\r\n mapper-locations: classpath:mapper/*.xml\r\n configuration:\r\n jdbc-type-for-null: null\r\n global-config:\r\n banner: false\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n\r\njustauth:\r\n enabled: true\r\n type:\r\n github:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n gitee:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n tencent_cloud:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n dingtalk:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n qq:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n microsoft:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n cache:\r\n type: redis\r\n prefix: \'FEBS::CLOUD::SOCIAL::STATE::\'\r\n timeout: 1h\r\n\r\nfebs:\r\n frontUrl: \'http://localhost:9527\'', '3b8d1c75d66045d85bc81ee9062f50f5', '2019-09-19 09:57:30', '2019-12-12 10:41:03', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Auth微服务配置(测试环境)', 'null', 'null', 'yaml', 'null');
  46. INSERT INTO `config_info` VALUES (19, 'febs-auth-prod.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8101\r\nspring:\r\n datasource:\r\n dynamic:\r\n hikari:\r\n connection-timeout: 30000\r\n max-lifetime: 1800000\r\n max-pool-size: 15\r\n min-idle: 5\r\n connection-test-query: select 1\r\n pool-name: FebsHikariCP\r\n primary: base\r\n datasource:\r\n base:\r\n username: root\r\n password: 123456\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://${mysql.url}:3306/febs_cloud_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8\r\n\r\n jackson:\r\n date-format: yyyy-MM-dd HH:mm:ss\r\n time-zone: GMT+8\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n redis:\r\n database: 0\r\n host: ${redis.url}\r\n port: 6379\r\n password: 123456\r\n lettuce:\r\n pool:\r\n min-idle: 8\r\n max-idle: 500\r\n max-active: 2000\r\n max-wait: 10000\r\n timeout: 5000\r\nmybatis-plus:\r\n type-aliases-package: cc.mrbird.febs.common.entity.system\r\n mapper-locations: classpath:mapper/*.xml\r\n configuration:\r\n jdbc-type-for-null: null\r\n global-config:\r\n banner: false\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n\r\njustauth:\r\n enabled: true\r\n type:\r\n github:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n gitee:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n tencent_cloud:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n dingtalk:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n qq:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n microsoft:\r\n client-id: \r\n client-secret: \r\n redirect-uri: \r\n cache:\r\n type: redis\r\n prefix: \'FEBS::CLOUD::SOCIAL::STATE::\'\r\n timeout: 1h\r\n\r\nfebs:\r\n frontUrl: \'http://localhost:9527\'', 'a71111a90dee8362984d348a111ce477', '2019-09-19 09:58:33', '2019-12-12 10:41:14', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Auth微服务配置(生产环境)', 'null', 'null', 'yaml', 'null');
  47. INSERT INTO `config_info` VALUES (21, 'febs-server-system-dev.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8201\r\nspring:\r\n aop:\r\n proxy-target-class: true\r\n jackson:\r\n date-format: yyyy-MM-dd HH:mm:ss\r\n time-zone: GMT+8\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n freemarker:\r\n check-template-location: false\r\n\r\n datasource:\r\n dynamic:\r\n p6spy: true\r\n hikari:\r\n connection-timeout: 30000\r\n max-lifetime: 1800000\r\n max-pool-size: 15\r\n min-idle: 5\r\n connection-test-query: select 1\r\n pool-name: FebsHikariCP\r\n primary: base\r\n datasource:\r\n base:\r\n username: root\r\n password: 123456\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://${mysql.url}:3306/febs_cloud_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8\r\n zipkin:\r\n sender:\r\n type: rabbit\r\n sleuth:\r\n sampler:\r\n probability: 1\r\n rabbitmq:\r\n host: ${rabbitmq.url}\r\n port: 5672\r\n username: febs\r\n password: 123456\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration\r\n\r\nmybatis-plus:\r\n type-aliases-package: cc.mrbird.febs.common.entity.system\r\n mapper-locations: classpath:mapper/*/*.xml\r\n configuration:\r\n jdbc-type-for-null: null\r\n global-config:\r\n banner: false\r\nsecurity:\r\n oauth2:\r\n resource:\r\n id: ${spring.application.name}\r\n user-info-uri: http://${febs-gateway}:8301/auth/user\r\n\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS', 'b0000ccc64019bce0b9da6325d9277f0', '2019-09-19 10:14:31', '2019-12-12 10:41:28', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Server-System微服务配置(开发环境)', 'null', 'null', 'yaml', 'null');
  48. INSERT INTO `config_info` VALUES (22, 'febs-server-system-prod.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8201\r\nspring:\r\n aop:\r\n proxy-target-class: true\r\n jackson:\r\n date-format: yyyy-MM-dd HH:mm:ss\r\n time-zone: GMT+8\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n freemarker:\r\n check-template-location: false\r\n\r\n datasource:\r\n dynamic:\r\n p6spy: true\r\n hikari:\r\n connection-timeout: 30000\r\n max-lifetime: 1800000\r\n max-pool-size: 15\r\n min-idle: 5\r\n connection-test-query: select 1\r\n pool-name: FebsHikariCP\r\n primary: base\r\n datasource:\r\n base:\r\n username: root\r\n password: 123456\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://${mysql.url}:3306/febs_cloud_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8\r\n zipkin:\r\n sender:\r\n type: rabbit\r\n sleuth:\r\n sampler:\r\n probability: 1\r\n rabbitmq:\r\n host: ${rabbitmq.url}\r\n port: 5672\r\n username: febs\r\n password: 123456\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration\r\n\r\nmybatis-plus:\r\n type-aliases-package: cc.mrbird.febs.common.entity.system\r\n mapper-locations: classpath:mapper/*/*.xml\r\n configuration:\r\n jdbc-type-for-null: null\r\n global-config:\r\n banner: false\r\nsecurity:\r\n oauth2:\r\n resource:\r\n id: ${spring.application.name}\r\n user-info-uri: http://${febs-gateway}:8301/auth/user\r\n\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS', 'b0000ccc64019bce0b9da6325d9277f0', '2019-09-19 10:15:27', '2019-12-12 10:41:38', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Server-System微服务配置(生产环境)', 'null', 'null', 'yaml', 'null');
  49. INSERT INTO `config_info` VALUES (23, 'febs-server-system-test.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8201\r\nspring:\r\n aop:\r\n proxy-target-class: true\r\n jackson:\r\n date-format: yyyy-MM-dd HH:mm:ss\r\n time-zone: GMT+8\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n freemarker:\r\n check-template-location: false\r\n\r\n datasource:\r\n dynamic:\r\n p6spy: true\r\n hikari:\r\n connection-timeout: 30000\r\n max-lifetime: 1800000\r\n max-pool-size: 15\r\n min-idle: 5\r\n connection-test-query: select 1\r\n pool-name: FebsHikariCP\r\n primary: base\r\n datasource:\r\n base:\r\n username: root\r\n password: 123456\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://${mysql.url}:3306/febs_cloud_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8\r\n zipkin:\r\n sender:\r\n type: rabbit\r\n sleuth:\r\n sampler:\r\n probability: 1\r\n rabbitmq:\r\n host: ${rabbitmq.url}\r\n port: 5672\r\n username: febs\r\n password: 123456\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration\r\n\r\nmybatis-plus:\r\n type-aliases-package: cc.mrbird.febs.common.entity.system\r\n mapper-locations: classpath:mapper/*/*.xml\r\n configuration:\r\n jdbc-type-for-null: null\r\n global-config:\r\n banner: false\r\nsecurity:\r\n oauth2:\r\n resource:\r\n id: ${spring.application.name}\r\n user-info-uri: http://${febs-gateway}:8301/auth/user\r\n\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS', 'b0000ccc64019bce0b9da6325d9277f0', '2019-09-19 10:16:16', '2019-12-12 10:41:50', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Server-System微服务配置(测试环境)', 'null', 'null', 'yaml', 'null');
  50. INSERT INTO `config_info` VALUES (24, 'febs-server-test.yaml', 'DEFAULT_GROUP', 'server:\r\n port: 8202\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration,org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration\r\n\r\n zipkin:\r\n sender:\r\n type: rabbit\r\n sleuth:\r\n sampler:\r\n probability: 1\r\n rabbitmq:\r\n host: ${rabbitmq.url}\r\n port: 5672\r\n username: febs\r\n password: 123456\r\n\r\nfeign:\r\n hystrix:\r\n enabled: true\r\n\r\nhystrix:\r\n shareSecurityContext: true\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n\r\nsecurity:\r\n oauth2:\r\n resource:\r\n id: ${spring.application.name}\r\n user-info-uri: http://${febs-gateway}:8301/auth/user\r\n\r\ninfo:\r\n app:\r\n name: ${spring.application.name}\r\n description: \"@project.description@\"\r\n version: \"@project.version@\"\r\n\r\nmanagement:\r\n endpoints:\r\n web:\r\n exposure:\r\n include: \'*\'\r\n endpoint:\r\n health:\r\n show-details: ALWAYS', '30591e03f60719253dbf8b373c110334', '2019-09-19 10:17:25', '2019-12-12 10:41:59', NULL, '0:0:0:0:0:0:0:1', '', '', 'FEBS-Server-Test微服务配置', 'null', 'null', 'yaml', 'null');
  51. -- ----------------------------
  52. -- Table structure for config_info_aggr
  53. -- ----------------------------
  54. DROP TABLE IF EXISTS `config_info_aggr`;
  55. CREATE TABLE `config_info_aggr` (
  56. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  57. `data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
  58. `group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
  59. `datum_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'datum_id',
  60. `content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '内容',
  61. `gmt_modified` datetime(0) NOT NULL COMMENT '修改时间',
  62. `app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  63. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
  64. PRIMARY KEY (`id`) USING BTREE,
  65. UNIQUE INDEX `uk_configinfoaggr_datagrouptenantdatum`(`data_id`, `group_id`, `tenant_id`, `datum_id`) USING BTREE
  66. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '增加租户字段' ROW_FORMAT = Dynamic;
  67. -- ----------------------------
  68. -- Table structure for config_info_beta
  69. -- ----------------------------
  70. DROP TABLE IF EXISTS `config_info_beta`;
  71. CREATE TABLE `config_info_beta` (
  72. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  73. `data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
  74. `group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
  75. `app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
  76. `content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
  77. `beta_ips` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'betaIps',
  78. `md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
  79. `gmt_create` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '创建时间',
  80. `gmt_modified` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '修改时间',
  81. `src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
  82. `src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
  83. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
  84. PRIMARY KEY (`id`) USING BTREE,
  85. UNIQUE INDEX `uk_configinfobeta_datagrouptenant`(`data_id`, `group_id`, `tenant_id`) USING BTREE
  86. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_beta' ROW_FORMAT = Dynamic;
  87. -- ----------------------------
  88. -- Table structure for config_info_tag
  89. -- ----------------------------
  90. DROP TABLE IF EXISTS `config_info_tag`;
  91. CREATE TABLE `config_info_tag` (
  92. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  93. `data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
  94. `group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
  95. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
  96. `tag_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_id',
  97. `app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
  98. `content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
  99. `md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'md5',
  100. `gmt_create` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '创建时间',
  101. `gmt_modified` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '修改时间',
  102. `src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT 'source user',
  103. `src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'source ip',
  104. PRIMARY KEY (`id`) USING BTREE,
  105. UNIQUE INDEX `uk_configinfotag_datagrouptenanttag`(`data_id`, `group_id`, `tenant_id`, `tag_id`) USING BTREE
  106. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_info_tag' ROW_FORMAT = Dynamic;
  107. -- ----------------------------
  108. -- Table structure for config_tags_relation
  109. -- ----------------------------
  110. DROP TABLE IF EXISTS `config_tags_relation`;
  111. CREATE TABLE `config_tags_relation` (
  112. `id` bigint(20) NOT NULL COMMENT 'id',
  113. `tag_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_name',
  114. `tag_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tag_type',
  115. `data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
  116. `group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
  117. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
  118. `nid` bigint(20) NOT NULL AUTO_INCREMENT,
  119. PRIMARY KEY (`nid`) USING BTREE,
  120. UNIQUE INDEX `uk_configtagrelation_configidtag`(`id`, `tag_name`, `tag_type`) USING BTREE,
  121. INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
  122. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'config_tag_relation' ROW_FORMAT = Dynamic;
  123. -- ----------------------------
  124. -- Table structure for group_capacity
  125. -- ----------------------------
  126. DROP TABLE IF EXISTS `group_capacity`;
  127. CREATE TABLE `group_capacity` (
  128. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  129. `group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Group ID,空字符表示整个集群',
  130. `quota` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
  131. `usage` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
  132. `max_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
  133. `max_aggr_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数,,0表示使用默认值',
  134. `max_aggr_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
  135. `max_history_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
  136. `gmt_create` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '创建时间',
  137. `gmt_modified` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '修改时间',
  138. PRIMARY KEY (`id`) USING BTREE,
  139. UNIQUE INDEX `uk_group_id`(`group_id`) USING BTREE
  140. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '集群、各Group容量信息表' ROW_FORMAT = Dynamic;
  141. -- ----------------------------
  142. -- Table structure for his_config_info
  143. -- ----------------------------
  144. DROP TABLE IF EXISTS `his_config_info`;
  145. CREATE TABLE `his_config_info` (
  146. `id` bigint(64) UNSIGNED NOT NULL,
  147. `nid` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  148. `data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  149. `group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  150. `app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'app_name',
  151. `content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  152. `md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  153. `gmt_create` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00',
  154. `gmt_modified` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00',
  155. `src_user` text CHARACTER SET utf8 COLLATE utf8_bin NULL,
  156. `src_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  157. `op_type` char(10) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  158. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT '租户字段',
  159. PRIMARY KEY (`nid`) USING BTREE,
  160. INDEX `idx_gmt_create`(`gmt_create`) USING BTREE,
  161. INDEX `idx_gmt_modified`(`gmt_modified`) USING BTREE,
  162. INDEX `idx_did`(`data_id`) USING BTREE
  163. ) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '多租户改造' ROW_FORMAT = Dynamic;
  164. -- ----------------------------
  165. -- Records of his_config_info
  166. -- ----------------------------
  167. INSERT INTO `his_config_info` VALUES (8, 9, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway', '161da681d1415dace6d7c974ba9e5005', '2010-05-05 00:00:00', '2020-01-14 10:26:21', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  168. INSERT INTO `his_config_info` VALUES (8, 10, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n# autoconfigure:\r\n# exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n data:\r\n mongodb:\r\n host: localhost\r\n port: 27017\r\n database: febs_cloud_route\r\n redis:\r\n database: 3\r\n host: ${redis.url}\r\n port: 6379\r\n lettuce:\r\n pool:\r\n min-idle: 8\r\n max-idle: 500\r\n max-active: 2000\r\n max-wait: 10000\r\n timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\nfebs:\r\n gateway:\r\n enhance: true\r\n jwt:\r\n secret: 123456\r\n expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', '1c52bbc79a32b894ffce535dc71e2f98', '2010-05-05 00:00:00', '2020-01-14 10:32:35', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  169. INSERT INTO `his_config_info` VALUES (8, 11, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n # data:\r\n # mongodb:\r\n # host: ${mongo.url}\r\n # port: 27017\r\n # database: febs_cloud_route\r\n\r\n # redis:\r\n # database: 3\r\n # host: ${redis.url}\r\n # port: 6379\r\n # lettuce:\r\n # pool:\r\n # min-idle: 8\r\n # max-idle: 500\r\n # max-active: 2000\r\n # max-wait: 10000\r\n # timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\n# febs:\r\n# gateway:\r\n# enhance: false\r\n# jwt:\r\n# secret: 123456\r\n# expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', 'c1facf1179660f70b592f574be8a263b', '2010-05-05 00:00:00', '2020-01-14 10:34:06', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  170. INSERT INTO `his_config_info` VALUES (8, 12, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n # data:\r\n # mongodb:\r\n # host: ${mongo.url}\r\n # port: 27017\r\n # database: febs_cloud_route\r\n\r\n # redis:\r\n # database: 3\r\n # host: ${redis.url}\r\n # port: 6379\r\n # lettuce:\r\n # pool:\r\n # min-idle: 8\r\n # max-idle: 500\r\n # max-active: 2000\r\n # max-wait: 10000\r\n # timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\nfebs:\r\n gateway:\r\n enhance: false\r\n jwt:\r\n secret: 123456\r\n expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', '62cfcbbb2ad5c5980ad72fb249863e05', '2010-05-05 00:00:00', '2020-01-14 10:34:58', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  171. INSERT INTO `his_config_info` VALUES (8, 13, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n # data:\r\n # mongodb:\r\n # host: ${mongo.url}\r\n # port: 27017\r\n # database: febs_cloud_route\r\n\r\n # redis:\r\n # database: 3\r\n # host: ${redis.url}\r\n # port: 6379\r\n # lettuce:\r\n # pool:\r\n # min-idle: 8\r\n # max-idle: 500\r\n # max-active: 2000\r\n # max-wait: 10000\r\n # timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\nfebs:\r\n gateway:\r\n enhance: false\r\n jwt:\r\n secret: 123456\r\n expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', '62cfcbbb2ad5c5980ad72fb249863e05', '2010-05-05 00:00:00', '2020-01-14 10:35:56', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  172. INSERT INTO `his_config_info` VALUES (8, 14, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n autoconfigure:\r\n exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n # data:\r\n # mongodb:\r\n # host: ${mongo.url}\r\n # port: 27017\r\n # database: febs_cloud_route\r\n\r\n # redis:\r\n # database: 3\r\n # host: ${redis.url}\r\n # port: 6379\r\n # lettuce:\r\n # pool:\r\n # min-idle: 8\r\n # max-idle: 500\r\n # max-active: 2000\r\n # max-wait: 10000\r\n # timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\nfebs:\r\n gateway:\r\n enhance: false\r\n jwt:\r\n secret: 123456\r\n expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', 'af3f9384f1f960e3a28f7a6770539aaa', '2010-05-05 00:00:00', '2020-01-14 10:51:34', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  173. INSERT INTO `his_config_info` VALUES (8, 15, 'febs-gateway.yaml', 'DEFAULT_GROUP', '', 'server:\r\n port: 8301\r\nspring:\r\n boot:\r\n admin:\r\n client:\r\n url: http://${febs-monitor-admin}:8401\r\n username: febs\r\n password: 123456\r\n instance:\r\n prefer-ip: true\r\n \r\n cloud:\r\n gateway:\r\n globalcors:\r\n corsConfigurations:\r\n \'[/**]\':\r\n allowedOrigins: \"*\"\r\n allowedMethods: \"*\"\r\n allowedHeaders: \"*\"\r\n allowCredentials: true\r\n routes:\r\n - id: FEBS-Auth-Social\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/social/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: socialfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Auth\r\n uri: lb://FEBS-Auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: authfallback\r\n fallbackUri: forward:/fallback/FEBS-Auth\r\n - id: FEBS-Server-System\r\n uri: lb://FEBS-Server-System\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: systemfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-System\r\n - id: FEBS-Server-test\r\n uri: lb://FEBS-Server-Test\r\n predicates:\r\n - Path=/test/**\r\n filters:\r\n - name: Hystrix\r\n args:\r\n name: testfallback\r\n fallbackUri: forward:/fallback/FEBS-Server-Test\r\n loadbalancer:\r\n use404: true\r\n default-filters:\r\n - StripPrefix=1\r\n\r\n # autoconfigure:\r\n # exclude: org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration\r\n\r\n# 网关增强配置\r\n data:\r\n mongodb:\r\n host: ${mongo.url}\r\n port: 27017\r\n database: febs_cloud_route\r\n\r\n redis:\r\n database: 3\r\n host: ${redis.url}\r\n port: 6379\r\n lettuce:\r\n pool:\r\n min-idle: 8\r\n max-idle: 500\r\n max-active: 2000\r\n max-wait: 10000\r\n timeout: 5000\r\n \r\n\r\n# 网关增强配置\r\nfebs:\r\n gateway:\r\n enhance: true\r\n jwt:\r\n secret: 123456\r\n expiration: 36000\r\n\r\nhystrix:\r\n command:\r\n default:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 3000\r\n socialfallback:\r\n execution:\r\n isolation:\r\n thread:\r\n timeoutInMilliseconds: 60000\r\n\r\nribbon:\r\n eager-load:\r\n enabled: true\r\n\r\nmanagement:\r\n endpoint:\r\n health:\r\n show-details: ALWAYS\r\n endpoints:\r\n web:\r\n exposure:\r\n include: health,info,gateway\r\n\r\n', '0d187ac9805044218a1e9bbe3befeee4', '2010-05-05 00:00:00', '2020-01-14 11:05:34', NULL, '0:0:0:0:0:0:0:1', 'U', '');
  174. -- ----------------------------
  175. -- Table structure for roles
  176. -- ----------------------------
  177. DROP TABLE IF EXISTS `roles`;
  178. CREATE TABLE `roles` (
  179. `username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  180. `role` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
  181. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  182. -- ----------------------------
  183. -- Records of roles
  184. -- ----------------------------
  185. INSERT INTO `roles` VALUES ('febs', 'ROLE_ADMIN');
  186. -- ----------------------------
  187. -- Table structure for tenant_capacity
  188. -- ----------------------------
  189. DROP TABLE IF EXISTS `tenant_capacity`;
  190. CREATE TABLE `tenant_capacity` (
  191. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  192. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Tenant ID',
  193. `quota` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配额,0表示使用默认值',
  194. `usage` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用量',
  195. `max_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个配置大小上限,单位为字节,0表示使用默认值',
  196. `max_aggr_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '聚合子配置最大个数',
  197. `max_aggr_size` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
  198. `max_history_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大变更历史数量',
  199. `gmt_create` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '创建时间',
  200. `gmt_modified` datetime(0) NOT NULL DEFAULT '2010-05-05 00:00:00' COMMENT '修改时间',
  201. PRIMARY KEY (`id`) USING BTREE,
  202. UNIQUE INDEX `uk_tenant_id`(`tenant_id`) USING BTREE
  203. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '租户容量信息表' ROW_FORMAT = Dynamic;
  204. -- ----------------------------
  205. -- Table structure for tenant_info
  206. -- ----------------------------
  207. DROP TABLE IF EXISTS `tenant_info`;
  208. CREATE TABLE `tenant_info` (
  209. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  210. `kp` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'kp',
  211. `tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_id',
  212. `tenant_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '' COMMENT 'tenant_name',
  213. `tenant_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'tenant_desc',
  214. `create_source` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'create_source',
  215. `gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
  216. `gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
  217. PRIMARY KEY (`id`) USING BTREE,
  218. UNIQUE INDEX `uk_tenant_info_kptenantid`(`kp`, `tenant_id`) USING BTREE,
  219. INDEX `idx_tenant_id`(`tenant_id`) USING BTREE
  220. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = 'tenant_info' ROW_FORMAT = Dynamic;
  221. -- ----------------------------
  222. -- Table structure for users
  223. -- ----------------------------
  224. DROP TABLE IF EXISTS `users`;
  225. CREATE TABLE `users` (
  226. `username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  227. `password` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  228. `enabled` tinyint(1) NOT NULL,
  229. PRIMARY KEY (`username`) USING BTREE
  230. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  231. -- ----------------------------
  232. -- Records of users
  233. -- ----------------------------
  234. INSERT INTO `users` VALUES ('febs', '$2a$10$NJRJ.JUIUVX5suXNFRuOFezX5nzQLxl86OyMNnA7yxH1zr94H/gBS', 1);
  235. SET FOREIGN_KEY_CHECKS = 1;