Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/src/Yi.Abp.Web/appsettings.json 4.52 KB
59e51671   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
  {
    //多租户,支持多库,DbConnOptions会自动创建到默认租户,支持配置文件方式+数据库方式,AbpDefaultTenantStoreOptions
  //  "Tenants": [
  //    {
  //      "Id": "33333333-3d72-4339-9adc-845151f8ada0",
  //      "Name": "Mes@MySql",
  //      "ConnectionStrings": {
  //        "Default": "DataSource=mes-dev.db"
  //      },
  //      "IsActive": false
  //    }
  //  ],
    
    "Logging": {
      "LogLevel": {
        //"Default": "Information",
        "Default": "Debug",
        "Microsoft.AspNetCore": "Warning"
      }
    },
    //应用启动:SelfUrl  Program.cs UseUrls 绑定;用 0.0.0.0 避免写成固定局域网 IP 在本机无该网卡时启动失败(WinError 10049)
    "App": {
      "SelfUrl": "http://localhost:19001",
      "CorsOrigins": "http://localhost:19001;http://localhost:18000;http://localhost:5666;http://localhost:3000"
    },
    //配置
    "Settings": {
      "Test": "hello"
    },
  
    //数据库类型列表
      "DbList": [ "Sqlite", "Mysql", "Sqlserver", "Oracle", "PostgreSQL" ],
  
      "DbConnOptions": {
          "Url": "server=rm-bp19ohrgc6111ynzh1o.mysql.rds.aliyuncs.com;port=3306;database=antis-foodlabeling-us;uid=netteam;pwd=netteam;CharSet=utf8mb4;",
          "DbType": "Mysql",
          "EnabledReadWrite": false,//是否启用读写分离
          "EnabledCodeFirst": false,//是否通过代码优先创建数据库表结构
          "EnabledSqlLog": true,//是否启用SQL日志记录
          "EnabledDbSeed": false,//是否启用数据库种子数据
          "EnableUnderLine": false, // 是否启用驼峰转下划线
          //SAAS多租户
          "EnabledSaasMultiTenancy": false,//是否启用多租户
          "EnabledConcurrencyException": false//是否启用并发异常处理
          //读写分离地址
          //"ReadUrl": [
          //  "DataSource=[xxxx]", //Sqlite
          //  "server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", //Mysql
          //  "Data Source=[xxxx];Initial Catalog=[xxxx];User ID=[xxxx];password=[xxxx]" //Sqlserver
          //  "HOST=[xxxx];PORT=5432;DATABASE=[xxxx];USERID=[xxxx];PASSWORD=[xxxx]" //PostgreSQL
          //]
      },
  
    //redis使用freeesql参数在“FreeSqlOptions的ConnectionStringBuilder中”
    "Redis": {
      "IsEnabled": false,
      "Configuration": "127.0.0.1:6379,password=123,defaultDatabase=13",
      "JobDb": 13
    },
  
    //鉴权
    "JwtOptions": {
      "Issuer": "https://ccnetcore.com",
      "Audience": "https://ccnetcore.com",
      "SecurityKey": "qqxwcevrbtnymu312412ihe9rfwhe78rh23djoi32hrui3ryf9e8wfh34iuj54y0934uti4h97fgw7hf97wyh8yy69522",
      "ExpiresMinuteTime": 86400
    },
    //刷新token
    "RefreshJwtOptions": {
      "Issuer": "https://yi.ccnetcore.com",
      "Audience": "https://yi.ccnetcore.com",
      "SecurityKey": "67ij4o6jo4i5j6io45j6i4j74p5k6i54ojoi5t9g8ergoj34ofgkrtbmreog894jbioemgropihj48rj4io5juopjgior",
      "ExpiresMinuteTime": 172800
    },
  
  
    //第三方登录
    "OAuth": {
      //QQ
      "QQ": {
        "ClientId": "",
        "ClientSecret": "",
        "RedirectUri": ""
      },
      //码云
      "Gitee": {
        "ClientId": "",
        "ClientSecret": "",
        "RedirectUri": ""
      }
    },
  
    //Rbac模块
    "RbacOptions": {
      //超级管理员种子数据默认密码
      "AdminPassword": "123456",
  
      //是否开启验证码验证
      "EnableCaptcha": false,
  
      //是否开启注册功能
      "EnableRegister": false,
  
      //开启定时数据库备份
      "EnableDataBaseBackup": false
    },
  
    // Forgot password: Microsoft 365 may return 535 until SMTP AUTH is enabled for the mailbox
    // (Exchange admin) and credentials are correct; use an app password if MFA is on.
    "ForgotPasswordEmail": {
      "IsEnabled": true,
      "SmtpHost": "smtp.office365.com",
      "SmtpPort": 587,
      "SecureSocketPreset": "StartTls",
      "UserName": "Sandi.ma@3ffoodsafety.com",
      "Password": "",
      "FromAddress": "Sandi.ma@3ffoodsafety.com",
      "FromDisplayName": "Food Labeling",
      "CodeLength": 6,
      "CacheExpirationMinutes": 10
    },
    
    //语义内核
    "SemanticKernel": {
      "ModelIds": ["gpt-4o"],
      "Endpoint": "https://xxx.com/v1",
      "ApiKey": "sk-xxxxxx"
    },
  
    "FoodLabeling": {
      "BatchImport": {
        "TemplateDirectory": "/www/wwwroot/FoodLabelingManagementUs/batchImportOfFiles",
        "LocationTemplateFileName": "Location-Manager-批量导入模板.xlsx",
        "TeamMemberTemplateFileName": "Team-Member-批量导入模板.xlsx",
        "ProductTemplateFileName": "Product-Manager-批量导入模板.xlsx",
        "TeamMemberImportDefaultPassword": "ChangeMe123!",
        "MaxImportRows": 5000,
        "MaxUploadBytes": 10485760,
        "MaxBulkUpdateItems": 500
      }
    }
  }