{ // 设置日志输出级别 // Set the log output level "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, // 允许的主机 // Allowed hosts "AllowedHosts": "*", // 用户登陆后,生成 token 所需参数 // Parameters required to generate token after user login "TokenParams": { "Secret": "B81806DA00600865988B2A305B91C47825750972A0A7159CCDC63A9838248D77", "Issuer": "127.0.0.1", "Audience": "UZonMail", "Expire": 86400000 // 过期时间,单位为毫秒, 默认 1 天 // Expiration time in milliseconds, default is 1 day // 若参数被泄露,别人可以伪造 token 用来登陆 // If the parameters are leaked, others can forge tokens to log in }, // 加密相关参数, 用于加密用户敏感信息,一经设置,在系统生命周期内,请不要更改 // Encryption related parameters, used to encrypt user sensitive information // Once set, do not change during the system lifecycle "EncryptParams": { "Key": "9739628D4379A0D438B9EAC80D619AE046BD6FD25BC1334E31AFDECBB61F4461", "IV": "CxTCVRGjQGCo2vDqBbma" }, // 系统相关信息 // System related information "System": { "Name": "宇正群邮", "LoginWelcome": "Welcome to UzonMail", "Icon": "", "Copyright": "Copyright © since UZon Email", "ICPInfo": "渝ICP备20246498号-3" }, // 调试相关配置 // Debug related configuration "Debug": { "Description": "Debug 相关配置", // Debug related settings // 若为 true, 则为演示模式, 不支持上传文件、发送邮件等操作 // If true, it is demo mode, does not support uploading files, sending emails, etc. "IsDemo": false }, // 资源路径 // Resource path "Resource": { "Path": "resource" }, // 后端 api 的基础 URL // Base URL of backend API "BaseUrl": "http://localhost:22345", // http 设置 // HTTP settings "Http": { "Port": 22345, "StaticName": "public", "BaseRoute": "/api/v1", "ListenAnyIP": true }, // websocket 设置 // WebSocket settings "Websocket": { "Port": 22345 }, // 数据库设置 // Database settings "Database": { // 免安装的数据库,系统默认使用这个 // No-install database, the system uses this by default "SqLite": { "Enable": true, "DataSource": "data/db/uzon-mail.db" }, // 对于高并发场景,建议使用 PostgreSql // For high concurrency scenarios, it is recommended to use PostgreSQL "PostgreSql": { "Enable": false, "Host": "127.0.0.1", "Port": 5432, "Database": "uzon-mail", "User": "uzon-mail", "Password": "uzon-mail", "Description": "优先级 1" // Priority 1 }, // 程序优先使用 PostgreSql // The program is optimized to use PostgreSQL // 缓存数据库 // Cache database // 默认使用内存缓存 // Default to use memory cache "Redis": { "Enable": false, "Host": "localhost", "Port": 6379, "Password": "", "Database": 0 } }, // 日志保存位置 // Log save location "Logger": { "HttpLogPath": "logs/uzon-mail.http.log", "Log4netPath": "logs/uzon-mail.stdout.log" }, // 初始用户设置 // Initial user settings "User": { // 缓存位置 // Cache location "CachePath": "users/{0}", // 管理员用户名和密码, 只在第一次启动时初始化 // Administrator username and password, initialized only at first startup "AdminUser": { "UserId": "admin", "Password": "admin1234", "Avatar": "" }, // 新建用户时的默认密码 // Default password when creating a new user "DefaultPassword": "uzonmail123" }, // 跨域设置 // CORS settings // 前后端分离、服务器部署时,都需要设置跨域 // CORS needs to be set for front-end and back-end separation or server deployment "Cors": [ "http://localhost:9000", "https://desktop.uzonmail.com" ], // 文件存储设置 // File storage settings "FileStorage": { "DefaultRootDir": "data/object-files" }, // 退订设置 // Unsubscribe settings "Unsubscribe": { // 设置退订的头 // Set unsubscribe headers "Headers": [ { "Domain": "gmail.com", "Header": "RFC8058", "Description": "这个是默认的退订头" // This is the default unsubscribe header }, { "Domain": "aliyun.com", "Header": "AliDM", "Description": "阿里云的退订头" // Alibaba Cloud's unsubscribe header } ] }, // 用于设置 Outlook 授权参数 // Used to set Outlook authorization parameters "MicrosoftEntraApp": { "ClientId": "", "TenantId": "", "ClientSecret": "" }, // 定时任务设置 // Scheduled task settings "Quartz": { "document": "https://www.quartz-scheduler.net/documentation/quartz-3.x/packages/microsoft-di-integration.html", "quartz.scheduler.instanceName": "Quartz ASP.NET Core Sample Scheduler", "quartz.threadPool.maxConcurrency": 3, "quartz.jobStore.type": "Quartz.Impl.AdoJobStore.JobStoreTX, Quartz", "quartz.serializer.type": "json", "quartz.jobStore.driverDelegateType": "Quartz.Impl.AdoJobStore.StdAdoDelegate, Quartz", "quartz.jobStore.tablePrefix": "QRTZ_", "quartz.jobStore.dataSource": "sqlLite", "quartz.dataSource.sqlLite.connectionString": "Data Source=data/db/quartz-sqlite.sqlite3", "quartz.dataSource.sqlLite.provider": "SQLite-Microsoft", "quartz.jobStore.performSchemaValidation": false }, // AI 助手配置 // AI assistant configuration "AiCopilot": { "Prompts": { // remove the comments below and set your custom prompts if needed //"EmailBodyGeneration": "", //"EmailBodyEnhancement": "", //"SubjectsSummary": "" } } }