diff --git a/doc/yml/author-service/author-service.yml b/doc/yml/author-service/author-service.yml deleted file mode 100644 index 0bddb4f..0000000 --- a/doc/yml/author-service/author-service.yml +++ /dev/null @@ -1,24 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 660 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c - group: dev - diff --git a/doc/yml/book-service/book-service.yml b/doc/yml/book-service/book-service.yml deleted file mode 100644 index e5a6a79..0000000 --- a/doc/yml/book-service/book-service.yml +++ /dev/null @@ -1,24 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 620 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c - - \ No newline at end of file diff --git a/doc/yml/nacos_config_export_20200529164001.zip b/doc/yml/nacos_config_export_20200529164001.zip deleted file mode 100644 index 68a3074..0000000 Binary files a/doc/yml/nacos_config_export_20200529164001.zip and /dev/null differ diff --git a/doc/yml/nacos_config_export_20200602203745.zip b/doc/yml/nacos_config_export_20200602203745.zip new file mode 100644 index 0000000..bdf8b71 Binary files /dev/null and b/doc/yml/nacos_config_export_20200602203745.zip differ diff --git a/doc/yml/news-service/news-service.yml b/doc/yml/news-service/news-service.yml deleted file mode 100644 index 41e838c..0000000 --- a/doc/yml/news-service/news-service.yml +++ /dev/null @@ -1,22 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 630 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c \ No newline at end of file diff --git a/doc/yml/novel-common/novel-jwt.yml b/doc/yml/novel-common/novel-jwt.yml deleted file mode 100644 index 6bdb8c8..0000000 --- a/doc/yml/novel-common/novel-jwt.yml +++ /dev/null @@ -1,3 +0,0 @@ -jwt: - secret: NDYzMmZjNTExOGE1YjEzNTQ2OTlkMzUzYjUyNTgyZDFkYmNjNzZjODhmMzk2ZDk0NTFiNzA5MmYxNzhhZGI0ZGM2NDdmNzBlMzE3Nzg2NzE1NWE3MGQ5ZWFmMzQ4ODk1MDcyNzA3ZTkyM2VlOTdhZGJkNDYxM2QwYzU3NWE3Yzk - expiration: 604800 \ No newline at end of file diff --git a/doc/yml/novel-gateway/novel-gateway.yml b/doc/yml/novel-gateway/novel-gateway.yml deleted file mode 100644 index 0521cbd..0000000 --- a/doc/yml/novel-gateway/novel-gateway.yml +++ /dev/null @@ -1,58 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 527 -spring: - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c - gateway: - routes: - - id: home-route - uri: lb://novel-home - predicates: - - Path=/api/home/** - filters: - - RewritePath=/api/(?.*), /$\{segment} - - id: news-route - uri: lb://news-service - predicates: - - Path=/api/news/** - filters: - - RewritePath=/api/(?.*), /$\{segment} - - id: user-route - uri: lb://user-service - predicates: - - Path=/api/user/** - filters: - - RewritePath=/api/(?.*), /$\{segment} - - id: book-route - uri: lb://book-service - predicates: - - Path=/api/book/** - filters: - - RewritePath=/api/(?.*), /$\{segment} - - id: search-route - uri: lb://novel-search - predicates: - - Path=/api/search/** - filters: - - RewritePath=/api/(?.*), /$\{segment} - - id: monitor-route - uri: lb://novel-monitor - predicates: - - Path=/monitor/** - filters: - - RewritePath=/monitor/(?.*), /$\{segment} - - - \ No newline at end of file diff --git a/doc/yml/novel-home/novel-home.yml b/doc/yml/novel-home/novel-home.yml deleted file mode 100644 index dacf29a..0000000 --- a/doc/yml/novel-home/novel-home.yml +++ /dev/null @@ -1,42 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 640 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c - - #Redis服务器IP - redis: - host: 47.106.243.172 - #Redis服务器连接端口 - port: 6379 - #Redis服务器连接密码 - password: - jedis: - pool: - #连接池最大连接数(使用负值表示没有限制) - max-active: 8 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-wait: 1 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-idle: 8 - #连接池中的最小空闲连接 - min-idle: 0 - #连接超时时间(毫秒) - timeout: 30000 \ No newline at end of file diff --git a/doc/yml/novel-monitor/novel-monitor.yml b/doc/yml/novel-monitor/novel-monitor.yml deleted file mode 100644 index 18f1612..0000000 --- a/doc/yml/novel-monitor/novel-monitor.yml +++ /dev/null @@ -1,19 +0,0 @@ -server: - port: 529 - -spring: - security: # 配置登录用户名和密码 - user: - name: novel-plus - password: 123456 - boot: # 不显示admin-server的监控信息 - admin: - discovery: - ignored-services: ${spring.application.name} - - - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c \ No newline at end of file diff --git a/doc/yml/novel-search/novel-search.yml b/doc/yml/novel-search/novel-search.yml deleted file mode 100644 index 03f5849..0000000 --- a/doc/yml/novel-search/novel-search.yml +++ /dev/null @@ -1,53 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 670 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c - - elasticsearch: - #是否开启搜索引擎,1:开启,0:不开启 - enable: 0 - jest: - uris: http://127.0.0.1:9200 - - #Redis服务器IP - redis: - host: 47.106.243.172 - #Redis服务器连接端口 - port: 6379 - #Redis服务器连接密码 - password: - jedis: - pool: - #连接池最大连接数(使用负值表示没有限制) - max-active: 8 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-wait: 1 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-idle: 8 - #连接池中的最小空闲连接 - min-idle: 0 - #连接超时时间(毫秒) - timeout: 30000 - - - - - \ No newline at end of file diff --git a/doc/yml/pay-service/pay-service.yml b/doc/yml/pay-service/pay-service.yml deleted file mode 100644 index 217f521..0000000 --- a/doc/yml/pay-service/pay-service.yml +++ /dev/null @@ -1,22 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 650 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c \ No newline at end of file diff --git a/doc/yml/user-service/user-service.yml b/doc/yml/user-service/user-service.yml deleted file mode 100644 index 5fa97a7..0000000 --- a/doc/yml/user-service/user-service.yml +++ /dev/null @@ -1,52 +0,0 @@ -management: #开启SpringBoot Admin的监控 - endpoints: - web: - exposure: - include: '*' - endpoint: - health: - show-details: always - -server: - port: 610 -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/novel_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: test123456 - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 47.106.243.172:8848 - namespace: 3960c71a-62ac-4b8f-8c30-bba8e8143a0c - - #Redis服务器IP - redis: - host: 47.106.243.172 - #Redis服务器连接端口 - port: 6379 - #Redis服务器连接密码 - password: - jedis: - pool: - #连接池最大连接数(使用负值表示没有限制) - max-active: 8 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-wait: 1 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-idle: 8 - #连接池中的最小空闲连接 - min-idle: 0 - #连接超时时间(毫秒) - timeout: 30000 - - - - - - - - - - diff --git a/novel-home/src/main/resources/bootstrap.yml b/novel-home/src/main/resources/bootstrap.yml index 42d3dd1..c9141b6 100644 --- a/novel-home/src/main/resources/bootstrap.yml +++ b/novel-home/src/main/resources/bootstrap.yml @@ -3,3 +3,10 @@ spring: name: novel-home profiles: active: dev + cloud: + nacos: + config: + ext‐config[0]: + data‐id: novel-redis.yml + group: novel-common + refresh: true diff --git a/novel-search/src/main/resources/bootstrap.yml b/novel-search/src/main/resources/bootstrap.yml index 437a1f9..735b5e7 100644 --- a/novel-search/src/main/resources/bootstrap.yml +++ b/novel-search/src/main/resources/bootstrap.yml @@ -3,3 +3,10 @@ spring: name: novel-search profiles: active: dev + cloud: + nacos: + config: + ext‐config[0]: + data‐id: novel-redis.yml + group: novel-common + refresh: true \ No newline at end of file diff --git a/novel-user/user-service/src/main/resources/bootstrap.yml b/novel-user/user-service/src/main/resources/bootstrap.yml index 3b63358..dd0b93f 100644 --- a/novel-user/user-service/src/main/resources/bootstrap.yml +++ b/novel-user/user-service/src/main/resources/bootstrap.yml @@ -8,6 +8,10 @@ spring: data‐id: novel-jwt.yml group: novel-common refresh: true + ext‐config[1]: + data‐id: novel-redis.yml + group: novel-common + refresh: true profiles: active: dev