Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/src/Yi.Abp.Web/appsettings.json 4.11 KB
a1a0369d   李曜臣   5-25代码优化
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
  {
    //多租户,支持多库,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://192.168.1.2:19002",
      "CorsOrigins": "http://localhost:19002;http://localhost:18000;http://localhost:5666;http://localhost:3000;http://127.0.0.1:19002"
    },
    //配置
    "Settings": {
      "Test": "hello"
    },
  
    //泰额版 + 美国版业务共用(勿重复定义 FoodLabeling 节点,否则后者会覆盖前者)
    "FoodLabeling": {
      "MultiTenancy": {
        "Mode": "SeparateDatabase"
      },
      "TenantDatabase": {
        "DatabaseNameTemplate": "antis-foodlabeling-{tenant}",
        "Server": "rm-bp19ohrgc6111ynzh1o.mysql.rds.aliyuncs.com",
        "Port": 3306,
        "UserId": "netteam",
        "Password": "netteam",
        "CharSet": "utf8mb4"
      },
      "LegacyTenant": {
        "Id": "11111111-1111-1111-1111-111111111111",
        "Name": "Default"
      },
      "PlatformHost": {
        "DatabaseName": "antis-foodlabeling-host"
      },
      "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
      }
    },
  
    //数据库类型列表
    "DbList": [ "Sqlite", "Mysql", "Sqlserver", "Oracle", "PostgreSQL" ],
  
    "DbConnOptions": {
      "Url": "server=rm-bp19ohrgc6111ynzh1o.mysql.rds.aliyuncs.com;port=3306;database=antis-foodlabeling-host;uid=netteam;pwd=netteam;CharSet=utf8mb4;",
      "DbType": "MySql",
      "EnabledReadWrite": false,
      "EnabledCodeFirst": false,
      "EnabledSqlLog": true,
      "EnabledDbSeed": false,
      "EnableUnderLine": false,
      "EnabledSaasMultiTenancy": true,
      "EnabledConcurrencyException": false
    },
  
    //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": {
        "ClientId": "",
        "ClientSecret": "",
        "RedirectUri": ""
      },
      "Gitee": {
        "ClientId": "",
        "ClientSecret": "",
        "RedirectUri": ""
      }
    },
  
    //Rbac模块
    "RbacOptions": {
      "AdminPassword": "123456",
      "EnableCaptcha": false,
      "EnableRegister": false,
      "EnableDataBaseBackup": false
    },
  
    "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"
    }
  }