parent
8203992415
commit
a0cbe07167
@ -1,19 +0,0 @@
|
||||
server:
|
||||
port: 9006
|
||||
spring:
|
||||
application:
|
||||
name: luoo-comment
|
||||
data:
|
||||
mongodb:
|
||||
uri: mongodb://8.134.98.47:27017/spitdb
|
||||
username: root
|
||||
password: 47084735Abc@
|
||||
redis:
|
||||
host: 8.134.98.47
|
||||
port: 36379
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:6868/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: comment
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>luoo_parent</artifactId>
|
||||
<groupId>com.luoo</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>luoo_config</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-config-server</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-bus</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
@ -0,0 +1,13 @@
|
||||
package com.luoo.config;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.config.server.EnableConfigServer;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableConfigServer
|
||||
public class ConfigApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ConfigApplication.class);
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
server:
|
||||
port: 12000
|
||||
spring:
|
||||
application:
|
||||
name: luoo-config
|
||||
cloud:
|
||||
config:
|
||||
server:
|
||||
git:
|
||||
uri: https://gitee.com/sinkids/luoo_dev.git
|
||||
username: sinkids
|
||||
password: 47084735abc
|
||||
rabbitmq:
|
||||
host: 116.62.145.60
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: bus-refresh
|
@ -1,8 +0,0 @@
|
||||
server:
|
||||
port: 6868
|
||||
eureka:
|
||||
client:
|
||||
register-with-eureka: false
|
||||
fetch-registry: true
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:${server.port}/eureka/
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: eureka
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -1,23 +0,0 @@
|
||||
server:
|
||||
port: 9010
|
||||
spring:
|
||||
application:
|
||||
name: luoo-friend
|
||||
datasource:
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://8.134.98.47:3307/indie_friend?characterEncoding=UTF8&useSSL=false
|
||||
username: root
|
||||
password: 47084735abc
|
||||
jpa:
|
||||
database: MySQL
|
||||
show-sql: true
|
||||
jwt:
|
||||
config:
|
||||
key: luoo
|
||||
ttl: 3600000
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:6868/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: friend
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -1,25 +0,0 @@
|
||||
server:
|
||||
port: 9011
|
||||
spring:
|
||||
application:
|
||||
name: luoo-manage
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:6868/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
jwt:
|
||||
config:
|
||||
key: luoo
|
||||
zuul:
|
||||
routes:
|
||||
luoo-user:
|
||||
path: /user/**
|
||||
serviceId: luoo-user
|
||||
luoo-gathering:
|
||||
path: /gathering/**
|
||||
serviceId: luoo-gathering
|
||||
luoo-music:
|
||||
path: /article/**
|
||||
serviceId: luoo-music
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: manage
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -1,22 +0,0 @@
|
||||
server:
|
||||
port: 9004
|
||||
spring:
|
||||
application:
|
||||
name: luoo-music #指定服务名
|
||||
datasource:
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://8.134.98.47:3307/indie_music?characterEncoding=UTF8&useSSL=false
|
||||
username: root
|
||||
password: 47084735abc
|
||||
jpa:
|
||||
database: MySQL
|
||||
show-sql: true
|
||||
redis:
|
||||
host: 8.134.98.47
|
||||
port: 36379
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:6868/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: music
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -1,13 +0,0 @@
|
||||
server:
|
||||
port: 9009
|
||||
spring:
|
||||
application:
|
||||
name: luoo-sms
|
||||
rabbitmq:
|
||||
host: 116.62.145.60
|
||||
aliyun:
|
||||
sms:
|
||||
accessKeyId: xxx
|
||||
accessKeySecret: xxx
|
||||
template_code: xxx
|
||||
sign_name: xxx
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: sms
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -1,28 +0,0 @@
|
||||
server:
|
||||
port: 9008
|
||||
spring:
|
||||
application:
|
||||
name: luoo-user #指定服务名
|
||||
datasource:
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://8.134.98.47:3307/indie_user?characterEncoding=UTF8&useSSL=false
|
||||
username: root
|
||||
password: 47084735abc
|
||||
jpa:
|
||||
database: MySQL
|
||||
show-sql: true
|
||||
redis:
|
||||
host: 116.62.145.60
|
||||
rabbitmq:
|
||||
host: 116.62.145.60
|
||||
jwt:
|
||||
config:
|
||||
key: luoo
|
||||
ttl: 3600000
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:6868/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: user
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
@ -1,22 +0,0 @@
|
||||
server:
|
||||
port: 9012
|
||||
spring:
|
||||
application:
|
||||
name: luoo-web
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://127.0.0.1:6868/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
zuul:
|
||||
routes:
|
||||
luoo-user:
|
||||
path: /user/**
|
||||
serviceId: luoo-user
|
||||
luoo-music:
|
||||
path: /article/**
|
||||
serviceId: luoo-music
|
||||
luoo-comment:
|
||||
path: /comment/**
|
||||
serviceId: luoo-comment
|
@ -0,0 +1,7 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
name: web
|
||||
profile: dev
|
||||
label: master
|
||||
uri: http://127.0.0.1:12000
|
Loading…
Reference in new issue