{
  "Logging": {
    "LogFileDirectory": "D:\\Net8\\FileServer\\Log",
    "MaxFileSizeMB": 20
  },
  "UrlOrigins": "http://192.168.195.68,http://localhost,http://localhost:8088,http://localhost:5235", //这个参数是反向指向的地址，也是跨域访问的地址，包含Vue内WebSitePolicy设置WebSite
  "applicationUrl": "https://uat.youjiala.com", //這個地址是最外层用户访问的，不是反向指向的地址https://uat.youjiala.com
  "CloudBuilder": {
    "Culture": "zh-cn",
    "DbContexts": {
      "MasterDbContext": {
        "DbContextTypeName": "MasterDbContext",
        "ConnectionString": "Server=localhost\\SQLEXPRESS;Database=Furion;User=sa;Password=owen123456;MultipleActiveResultSets=True;TrustServerCertificate=true",
        "DatabaseType": "SqlServer",
        "LazyLoadingProxiesEnabled": true,
        "AuditEntityEnabled": true,
        "AutoMigrationEnabled": true
      },
      "SecondaryDbContext": {
        "DbContextTypeName": "SecondaryDbContext",
        "ConnectionString": "Server=localhost\\SQLEXPRESS;Database=Furion;User=sa;Password=owen123456;MultipleActiveResultSets=True;TrustServerCertificate=true",
        "DatabaseType": "SqlServer",
        "LazyLoadingProxiesEnabled": true,
        "AuditEntityEnabled": true,
        "AutoMigrationEnabled": true
      }
    },
    "MailSender": {
      "Host": "smtp.mxhichina.com",
      "Port": 587,
      "EnableSsl": true,
      "DisplayName": "OSharp邮件发送",
      "UserName": "osharpsender@66soft.net",
      "Password": "OSharp147963"
    },
    "Authorization": { "EnableGlobalAuthorize": false }, //全局授权
    "Jwt": {
      "Issuer": "Owen Chen",
      "Audience": "Cloud Builder",
      "Secret": "{8619F7C3-B53C-4B85-99F0-983D351ECD82}",
      "AccessExpireMins": 120, //4小时过期
      "RefreshExpireMins": 1440, // 1天
      "IsRefreshAbsoluteExpired": false
    },
    "Redis": {
      "Configuration": "localhost",
      "InstanceName": "CloudBuilder:"
    }
  },
  "FileServiceSettings": {
    "PhysicalFileDirectory": "D:\\Net8\\FileServer",
    "RequestPath": "/FileServer", //如果是IIS反向代理来的，那么要在本地给这个文件添加IUSR,IIS_IUSRS权限
    "UploadDmsFileDirectory": "D:\\Net8\\FileServer\\Upload\\DmsFile",
    "BackupDmsFileDirectory": "D:\\Net8\\FileServer\\Backup\\DmsFile",
    "ScaleDmsFileDirectory": "D:\\Net8\\FileServer\\Scale\\DmsFile",
    "ExcelOutputDirectory": "D:\\Net8\\FileServer\\Output"
  },
  "Ffmpeg": {
    "Path": "D:\\NET8\\Exe\\ffmpeg\\bin\\ffmpeg.exe", //视频转码    
    "Pictrue": " -i {0} -ss 00:00:10.000 -frames:v 1 {1}",
    "Arguments": " -i {0} -c:v libx264  -vf scale=1280:-1 -start_number 0 -hls_time {1} -hls_list_size 0 -f hls {2}" //0-源路径，1-目标路径，2-存放多少秒 1280×720，852*480
  },
  "CloudBuilder.Topshelf": {
    "Path": "D:\\NET8\\CloudBuilder.Topshelf\\bin\\Debug\\net8.0\\CloudBuilder.Topshelf.exe" //图片压缩
  },
  "SecuritySettings": {
    "RsaPublicKey": "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8HMr2CBpoZPm3t9tCVlrKtTmI4jNJc7/HhxjIEiDjC8czP4PV+44LjXvLYcSV0fwi6nE4LH2c5PBPEnPfqp0g8TZeX+bYGvd70cXee9d8wHgBqi4k0J0X33c0ZnW7JruftPyvJo9OelYSofBXQTcwI+3uIl/YvrgQRv6A5mW01QIDAQAB-----END PUBLIC KEY-----",
    "RsaPrivateKey": "-----BEGIN RSA PRIVATE KEY-----MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALwcyvYIGmhk+be320JWWsq1OYjiM0lzv8eHGMgSIOMLxzM/g9X7jguNe8thxJXR/CLqcTgsfZzk8E8Sc9+qnSDxNl5f5tga93vRxd5713zAeAGqLiTQnRffdzRmdbsmu5+0/K8mj056VhKh8FdBNzAj7e4iX9i+uBBG/oDmZbTVAgMBAAECgYEAmgNU5NTDkj9B+Pnt6UU8doSjw3+3j+bV2K2yS3QUOvAUus/Ax7x6ktjWxzCXvDY9IfUil2RNv9vtKEAqYLCWjc+lf8PV/yH1b7NEgyeAPBXtAJRoOnmYL2bdPW92kP9KgxJruF6Dz/C5AmMOncsvq8ABD+9Darn4p8dwj2ZC4O0CQQDf/AHmZsQokEItfCy4mHS9UbxbfIhEUv1ApPh/+Sr7NkJkHWYCtBQo+8jKO6zurAZQgWBPD1XX2UE4R+VIiZazAkEA1wAqtMvGhccyRZr+6kpkpDIa8+9jOE+nGUzqTDvgCID6as8AzOONFVVK6m/UUqkhcJ8Qu1pF36BGojy5BX2KVwJBAJSFpbji0hXXupowqfLp3RcgmNbNWAp+QUJZYhJx5cdYbmO2fssyH+AhPT6knYJR/YnqkDM8hv6vKCkqu2YDHjMCQAOA8TE5EOclM+CGghj3VWSHnIDVKdzFD4gOBNNxNlltIKeU8AJmwunSFgJ0CBXAw9a+ANvMwM7AIeaK7sj0HskCQAvxfDCq7gaNx+pfu0FHG8Gix08A/A6foggBl1fVu+L9sr9ZuOQ3HbXnl28F9ewuB9xdjnLUDjp7W7U0pB+vKoQ=-----END RSA PRIVATE KEY-----",
    "DescKey": "052636a8b1469efdf5dc0034a3c5bb34",
    "DefaultActor": "VIEW_SYSTEM"
  },
  "IpRateLimiting": {
    "EnableEndpointRateLimiting": true, //False: globally executed, true: executed for each
    "StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter
    "RealIpHeader": "X-Real-IP",
    "ClientIdHeader": "X-ClientId",
    "IpWhitelist": [], //白名单
    "EndpointWhitelist": [],
    "ClientWhitelist": [],
    "HttpStatusCode": 200,
    "QuotaExceededResponse": {
      "Content": "{{\"code\":429,\"msg\":\"访问过于频繁，请稍后重试\",\"data\":null}}",
      "ContentType": "application/json",
      "StatusCode": 200
    },
    "GeneralRules": [
      {
        "Endpoint": "*",
        "Period": "1s",
        "Limit": 5
      },
      {
        "Endpoint": "*",
        "Period": "1m",
        "Limit": 50
      },
      {
        "Endpoint": "*",
        "Period": "12h",
        "Limit": 500
      }
    ]

  },
  "AllowedHosts": "*"
}
