网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
folder-controller
folder
folder-middleware
folder-class
folder-views
folder
docker
visualstudio
xml
csharp
csharp
readme
csharp

WebApi

配置文件详情

{
  "Logging": { // logging
    "LogLevel": {
      "Default": "Trace",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  //连接字符串 目前只使用了MySql连接字符串
  "ConnectionStrings": {
    "redis": "" //StackChanged.Redis redis 连接字符串
  },
  //MongoDb 配置
  "DbOption": {
    // 支持mongodb集群
    "Uris": [
      "localhost:27017",
      "localhost:37017"
    ],
    // 用户名
    "User": "",
    // 密码
    "Password": "",
    // 数据库名称
    "Database": "",
    // 身份认证数据库
    "AuthDatabase": "",
    // rs 名称
    "ReplicaSetName": ""
  },
  //代码查看配置
  "CodeView": {
    //允许查看文件的扩展名
    "Extensions": [
      ".sln",
      ".user",
      ".cs",
      ".cshtml",
      ".html",
      ".js",
      ".css",
      ".xml",
      ".json",
      ".md",
      ".xml",
      ".config",
      ".csproj",
      ".txt",
      ".scss",
      ".less",
      ".sql",
      "dockerfile",
      ".dockerignore",
      ".gitattributes",
      ".gitignore",
      ".razor",
      ".ps1"
    ],
    //源码存放的位置
    "SourceCodeRoot": "path",
    //查看代码需要过滤的目录或者文件,支持通配符
    "Filters": [
      "PRIVATE.md",
      "appsettings*.json",
      ".git",
      ".github",
      "TestResults",
      "bin",
      "obj",
      "sitemap.xml",
      "*.png",
      "*.jpg",
      "*.jpeg",
      "*.bmp",
      "*.ico",
      "*.webp",
      "*.dll",
      "*.exe",
      "*.db",
      "*.zip"
    ]
  },
  // api允许跨域的站点
  "Origins": [
    "http://localhost:33902",
    "https://localhost:33901",
    "https://localhost:3509",
    "http://127.0.0.1:5500",
    "https://localhost:8084",
    "http://localhost:8083",
    "https://localhost:5503",
    "https://localhost:33401",
    "https://localhost:37701",
    "https://localhost:9352"
  ],
  //主站地址
  "WebHost": "https://localhost:37701",
  //Jwt 身份认证配置
  "TokenManagement": {
    "Secret": "",
    "Issuer": "",
    "Audience": "",    
    "AccessExpiration": 30, //单位:分钟
    "RefreshExpiration": 7  //单位:天
  },
  //默认的Ioc配置
  "RegisterInject": [
    {
      //接口程序集
      "InterfaceAssemblyName": "Dpz.Core.Service",
      //实现类程序集
      "ImplementAssemblyName": "Dpz.Core.Service",
      //接口命名空间
      "InterfaceNamespace": "Dpz.Core.Service.RepositoryService",
      //实现类命名空间
      "ImplementNamespace": "Dpz.Core.Service.RepositoryServiceImpl"
    },
    {
      "InterfaceAssemblyName": "Dpz.Core.Service",
      "ImplementAssemblyName": "Dpz.Core.Service",
      "InterfaceNamespace": "Dpz.Core.Service.V4.Services",
      "ImplementNamespace": "Dpz.Core.Service.V4.Implements"
    }
  ],
  // github access token
  "GithubToken": "github token",
  "HangfirePrefix": "",
  "CDNHost": "",
  "ImageHost": "",
  // 又拍云配置
  "upyun": {
    // 服务名(储存服务)
    "Bucket": "",
    // 操作员
    "Operator": "",
    // 密码
    "Password": "",
    // 又拍云绑定host
    "Host": ""
  }
  
}

loading