techhero-auth-service.yml 1.29 KB
Newer Older
1 2 3 4
server:
  tomcat:
    max-threads: 500 # Maximum amount of worker threads.
    min-spare-threads: 50 # Minimum amount of worker threads
Administrator committed
5 6
# sleuth配置
spring:
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
  redis:
    host: 192.168.50.159 #119.96.87.17 #47.104.251.199
    port: 6379 #6942
    password: techhero #ENC(08db934a254e34b5366ff337b81532ec)
    database: 14
    #host: 39.108.117.105
    #port: 6379
    #password: xh3.1415..
    #database: 2
    timeout: 10000
    lettuce:
      pool:
        max-idle: 4
        min-idle: 1
        max-active: 5
        max-wait: 10000
Administrator committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36
ignore:
  urls:
  - /actuator/**
  - /token/**
  - /pwd/**
  - /mobile/**
  - /sso/**
  - /**/*.css
  - /auth/**
  - /refresh/**
  - /swagger-ui.html
  - /swagger-resources/**
  - /*/v2/api-docs
  - /webjars/**
37
  - /personalBack/**
38
  - /wechat/**
39 40 41 42 43 44
emay:
  # url
  url: http://www.btom.cn:8080
  # 短信平台
  appId: EUCP-EMY-SMS1-0M8GN
  # 秘钥
45 46 47
  secretKey: CA1D7241F03741C5
  
#oauth client
48 49
x-oauth-client:
  client-details-store:
50 51 52 53 54 55 56 57 58 59
    cloud:
      client-id: 'cloud'
      client_secret: '{noop}cloud'
      scope: 'server'
      authorized_grant_types: 'password,refresh_token,authorization_code,wechat'
      web_server_redirect_uri: 'www.techhero.cn'
      authorities: 'write'
      access_token_validity: 604800
      refresh_token_validity: 604800
      autoapprove: 'true'