-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd70e2f
commit cdf8b96
Showing
15 changed files
with
1,499 additions
and
115 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
server: | ||
port: 8087 | ||
spring: | ||
application: | ||
name: auth-service | ||
eureka: | ||
client: | ||
service-url: | ||
defaultZone: http://127.0.0.1:8761/eureka | ||
registry-fetch-interval-seconds: 10 | ||
instance: | ||
lease-renewal-interval-in-seconds: 5 # 每隔5秒发送一次心跳 | ||
lease-expiration-duration-in-seconds: 10 # 10秒不发送就过期 | ||
prefer-ip-address: true | ||
ip-address: 127.0.0.1 | ||
instance-id: ${spring.application.name}:${server.port} | ||
ly: | ||
jwt: | ||
secret: leyou@Login(Auth}*^31)&lollipop% # 登录校验的密钥 | ||
pubKeyPath: G:/test/rsa.pub # 公钥地址 | ||
priKeyPath: G:/test/rsa.pri # 私钥地址 | ||
expire: 1800 # 过期时间,单位秒 | ||
cookieName: LY_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
server: | ||
port: 8088 | ||
spring: | ||
application: | ||
name: cart-service | ||
redis: | ||
host: 192.168.161.101 | ||
eureka: | ||
client: | ||
service-url: | ||
defaultZone: http://127.0.0.1:8761/eureka | ||
registry-fetch-interval-seconds: 10 | ||
instance: | ||
prefer-ip-address: true | ||
ip-address: 127.0.0.1 | ||
ly: | ||
jwt: | ||
pubKeyPath: G:/test/rsa.pub # 公钥地址 | ||
cookieName: LY_TOKEN # cookie的名称 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
server: | ||
port: 8769 | ||
spring: | ||
application: | ||
name: api-gateway | ||
eureka: | ||
client: | ||
service-url: | ||
defaultZone: http://127.0.0.1:8761/eureka | ||
zuul: | ||
prefix: /api # 路由路径前缀 | ||
routes: | ||
item-service: /item/** # 商品微服务 | ||
search-service: /search/** # 搜索微服务 | ||
user-service: /user/** # 用户微服务 | ||
auth-service: /auth/** # 授权中心微服务 | ||
cart-service: /cart/** # 购物车微服务 | ||
order-service: /order/** # 订单微服务 | ||
upload-service: # 文件上传微服务 | ||
path: /upload/** | ||
serviceId: upload-service | ||
strip-prefix: false | ||
add-host-header: true # 携带请求本身的头部信息 | ||
sensitive-headers: | ||
hystrix: | ||
command: | ||
default: | ||
execution: | ||
isolation: | ||
thread: | ||
timeoutInMilliseconds: 5000 # 熔断超时时长:5000ms | ||
ribbon: | ||
ConnectTimeout: 1000 # ribbon连接超时时长 | ||
ReadTimeout: 3500 # ribbon读取超时时长 | ||
MaxAutoRetries: 0 # 当前服务重试次数 | ||
MaxAutoRetriesNextServer: 0 #切换服务重试次数 | ||
|
||
ly: | ||
jwt: | ||
pubKeyPath: G:/test/rsa.pub | ||
cookieName: LY_TOKEN | ||
filter: | ||
allowPaths: | ||
- /api/auth | ||
- /api/search | ||
- /api/user/register | ||
- /api/user/check | ||
- /api/user/code | ||
- /api/item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
server: | ||
port: 8081 | ||
spring: | ||
application: | ||
name: item-service | ||
datasource: | ||
url: jdbc:mysql://192.168.161.101:3306/leyou?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false | ||
username: root | ||
password: 159637428 | ||
driver-class-name: org.gjt.mm.mysql.Driver | ||
rabbitmq: | ||
host: 192.168.161.101 | ||
username: leyou | ||
password: leyou | ||
virtual-host: /leyou | ||
template: | ||
retry: | ||
enabled: true | ||
initial-interval: 10000ms | ||
max-interval: 30000ms | ||
multiplier: 2 | ||
exchange: ly.item.exchange | ||
publisher-confirms: true | ||
eureka: | ||
client: | ||
service-url: | ||
defaultZone: http://127.0.0.1:8761/eureka | ||
instance: | ||
prefer-ip-address: true | ||
mybatis: | ||
configuration: | ||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
type-aliases-package: cn.lollipop.item.pojo |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
server: | ||
port: 8084 | ||
spring: | ||
application: | ||
name: page-service | ||
thymeleaf: | ||
cache: false | ||
rabbitmq: | ||
host: 192.168.161.101 | ||
username: leyou | ||
password: leyou | ||
virtual-host: /leyou | ||
eureka: | ||
client: | ||
service-url: | ||
defaultZone: http://127.0.0.1:8761/eureka |
Oops, something went wrong.