颐和api

appsettings.Development.json 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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": "192.168.5.44",
  23. "Port": "6379",
  24. "Password": "",
  25. "Defaultdatabase": "5",
  26. "InstanceName": "test"
  27. },
  28. "spring": {
  29. "application": {
  30. "name": "configurationapi"
  31. }
  32. // Remove comments to enable Container to Container (C2C)
  33. // requests on Cloud Foundry
  34. // ,"cloud" : {
  35. // "discovery" : {
  36. // "registrationMethod" : "direct"
  37. // }
  38. // }
  39. },
  40. "eureka": {
  41. "client": {
  42. //"serviceUrl": "http://localhost:4866/eureka/"
  43. "serviceUrl": "http://192.168.5.46:28100/eureka/"
  44. //"shouldFetchRegistry": false
  45. },
  46. "instance": {
  47. "preferIpAddress": true,
  48. //服务过期时间配置,
  49. //超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除 #注意,EurekaServer一定要设置eureka.server.eviction-interval-timer-in-ms否则这个配置无效,这个配置一般为服务刷新时间配置的三倍
  50. //默认90s 在删除实例之前,EurekaServer等待的时间,默认= 90秒
  51. "leaseExpirationDurationInSeconds": 15,
  52. //服务刷新时间配置,每隔这个时间会主动心跳一次
  53. //默认30s 客户端需要发送心跳的频率,默认值= 30s
  54. "leaseRenewalIntervalInSeconds": 5,
  55. "statusPageUrlPath": "/api/info",
  56. "port": 28240
  57. // Remove comments to enable SSL requests
  58. // More changes in Program.cs are required if using direct C2C communications
  59. //,"securePortEnabled": true
  60. }
  61. }
  62. }