appsettings.json 781 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. "URL": "http://*:5001", //运行端口,IIS部署设置空
  3. "Logging": {
  4. "LogLevel": {
  5. "Default": "Information",
  6. "Microsoft": "Warning",
  7. "Microsoft.Hosting.Lifetime": "Information"
  8. }
  9. },
  10. //模拟登录
  11. "Login": {
  12. "Url": "http://127.0.0.1:5002/connect/token", //编码
  13. "ClientId": "YztServer", //编码
  14. "ClientSecrets": "84f6a2dd59b861b73deb509e1d752db2" //密钥
  15. },
  16. "Urls": "http://*:5001",
  17. "AllowedHosts": "*",
  18. "IdentityServerConfig": {
  19. "Url": "http://localhost:5002", //只能配置成localhost ?
  20. "UseHttps": false,
  21. "IdentityScheme": "Bearer",
  22. "ApiSecrets": [
  23. {
  24. "Key": "YZT",
  25. "Name": "yztservice"
  26. }
  27. ]
  28. },
  29. //白名单接口,主要用于文件下载
  30. "AllowAnonymous": [
  31. "/api/ghss/Ghtz/Download"
  32. ]
  33. }