颐和api

appsettings.Production.json 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "Cors": "",
  3. "Logging": {
  4. "IncludeScopes": false,
  5. "LogLevel": {
  6. "Default": "Debug",
  7. "System": "Error",
  8. "Microsoft": "Error",
  9. "Steeltoe": "Error"
  10. }
  11. },
  12. "Jwt": {
  13. "Issuer": "HySignToken",
  14. "Audience": "HyCallCenterApi",
  15. "SecretKey": "HYBambooJIe256sdkDfjiTSkjienTGjnVcu85114udfhbudgdkfUh"
  16. },
  17. "MongoConnection": {
  18. "ConnectionString": "mongodb://root:123456@192.168.5.44:27017", //本机
  19. "Database": "yh"
  20. },
  21. "Redis": {
  22. "HostName": "10.125.7.246",
  23. "Port": "6379",
  24. "Password": "",
  25. "Defaultdatabase": "5",
  26. "InstanceName": "wechat"
  27. },
  28. "spring": {
  29. "application": {
  30. "name": "onlinechatapi"
  31. }
  32. },
  33. "eureka": {
  34. "client": {
  35. "serviceUrl": "http://10.125.3.223:28100/eureka/"
  36. //"shouldFetchRegistry": false
  37. },
  38. "instance": {
  39. "preferIpAddress": true,
  40. //服务过期时间配置,
  41. //超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除 #注意,EurekaServer一定要设置eureka.server.eviction-interval-timer-in-ms否则这个配置无效,这个配置一般为服务刷新时间配置的三倍
  42. //默认90s 在删除实例之前,EurekaServer等待的时间,默认= 90秒
  43. "leaseExpirationDurationInSeconds": 15,
  44. //服务刷新时间配置,每隔这个时间会主动心跳一次
  45. //默认30s 客户端需要发送心跳的频率,默认值= 30s
  46. "leaseRenewalIntervalInSeconds": 5,
  47. "statusPageUrlPath": "/api/info",
  48. "port": 28300
  49. // Remove comments to enable SSL requests
  50. // More changes in Program.cs are required if using direct C2C communications
  51. //,"securePortEnabled": true
  52. }
  53. }
  54. }