Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hanggegreat committed Aug 2, 2019
1 parent fd70e2f commit cdf8b96
Show file tree
Hide file tree
Showing 15 changed files with 1,499 additions and 115 deletions.
476 changes: 393 additions & 83 deletions README.md

Large diffs are not rendered by default.

Binary file added imgs/1525597885059.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions ly-auth/ly-auth-service/target/classes/application.yaml
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
19 changes: 19 additions & 0 deletions ly-cart/target/classes/application.yaml
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的名称
49 changes: 49 additions & 0 deletions ly-gateway/target/classes/application.yml
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
33 changes: 33 additions & 0 deletions ly-item/ly-item-service/target/classes/application.yml
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.
16 changes: 16 additions & 0 deletions ly-page/target/classes/application.yml
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
Loading

0 comments on commit cdf8b96

Please sign in to comment.