appsettings.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. /* asp.net core 原始web服务配置 */
  3. "server": {
  4. //"urls": [ "http://localhost:5001", "http://127.0.0.1:5002", "http://*:5003" ]
  5. "urls": [ "http://localhost:7777" ]
  6. },
  7. "Logging": {
  8. "LogLevel": {
  9. "Default": "Warning"
  10. }
  11. },
  12. "Sers": {
  13. /* 通讯层配置 */
  14. "CL": {
  15. /* one conn is one channel.can be multiable */
  16. "Client": [
  17. {
  18. // Socket.Iocp
  19. /* (x.1) type - Iocp */
  20. /* the class of builder in assemblyFile */
  21. "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
  22. /* (x.2) conn config */
  23. /* 服务端 host地址。例如: "127.0.0.1"、"sers.cloud" */
  24. "host": "127.0.0.1",
  25. /* 服务端 监听端口号。例如: 4501 */
  26. "port": 4501,
  27. /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
  28. "secretKey": "SersCL"
  29. }
  30. ]
  31. },
  32. /* LocalApiService 配置,可不指定 */
  33. "LocalApiService": {
  34. /* 后台服务的线程个数(单位个,默认0,代表不开启服务) */
  35. "workThreadCount": 4,
  36. /* Api加载器配置 */
  37. "ApiLoaders": [
  38. {
  39. /* 加载器的类名,可为 Sers.ApiLoader.Ss.ApiLoader 、 Sers.ApiLoader.WebApi21.ApiLoader 等。若不指定则默认为"Sers.ApiLoader.Ss.ApiLoader" */
  40. "loader_className": "Sers.ApiLoader.WebApi21.ApiLoader",
  41. /* 在此Assembly中查找服务(如 Sers.Core.Station.dll 、Sers.ApiLoader.WebApi21.dll) */
  42. "loader_assemblyFile": "Sers.ApiLoader.WebApi21.dll",
  43. /* 在此Assembly中查找服务(如 App.StationDemo.Station)(assembly、assemblyFile、assemblyName 指定任一即可) */
  44. "assemblyName": "App.WebApi21.Station"
  45. }
  46. ]
  47. },
  48. /* ServiceStation配置,可不指定 */
  49. "ServiceStation": {
  50. /* serviceStation站点信息 */
  51. "serviceStationInfo": {
  52. "serviceStationName": "WebApi21"
  53. }
  54. }
  55. },
  56. /* Vit工具配置,可不指定 */
  57. "Vit": {
  58. /* 日志配置,可不指定 */
  59. "Logger": {
  60. /* print the log to Log/*.txt default:true */
  61. "PrintToTxt": true,
  62. /* print the log to console. default:false */
  63. "PrintToConsole": true
  64. }
  65. }
  66. }