2025-04-20 11:29:53 -07:00
|
|
|
import mongoose from "mongoose";
|
|
|
|
|
|
|
|
|
|
const AppSettingsSchema = mongoose.Schema(
|
|
|
|
|
{
|
2025-05-09 13:26:17 -07:00
|
|
|
checkTTL: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 30,
|
|
|
|
|
},
|
2025-05-08 13:11:51 -07:00
|
|
|
language: {
|
2025-04-20 11:29:53 -07:00
|
|
|
type: String,
|
2025-05-08 13:11:51 -07:00
|
|
|
default: "gb",
|
2025-04-20 11:29:53 -07:00
|
|
|
},
|
|
|
|
|
pagespeedApiKey: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
|
|
|
|
systemEmailHost: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
|
|
|
|
systemEmailPort: {
|
|
|
|
|
type: Number,
|
|
|
|
|
},
|
|
|
|
|
systemEmailAddress: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
|
|
|
|
systemEmailPassword: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
2025-05-09 14:53:20 -07:00
|
|
|
systemEmailUser: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
2025-05-15 14:27:08 +02:00
|
|
|
systemEmailConnectionHost: {
|
|
|
|
|
type: String,
|
2025-05-15 15:16:36 +02:00
|
|
|
default: "localhost",
|
2025-05-15 14:27:08 +02:00
|
|
|
},
|
2025-06-13 12:22:28 +05:30
|
|
|
systemEmailTLSServername: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
|
|
|
|
systemEmailSecure: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
systemEmailPool: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
systemEmailIgnoreTLS: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
systemEmailRequireTLS: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
|
|
|
|
},
|
|
|
|
|
systemEmailRejectUnauthorized: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: true,
|
|
|
|
|
},
|
2025-04-20 11:29:53 -07:00
|
|
|
singleton: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
required: true,
|
|
|
|
|
unique: true,
|
|
|
|
|
default: true,
|
|
|
|
|
},
|
2025-05-13 12:58:01 -07:00
|
|
|
version: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 1,
|
|
|
|
|
},
|
2025-04-20 11:29:53 -07:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
timestamps: true,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2025-05-08 13:11:51 -07:00
|
|
|
export default mongoose.model("AppSettings", AppSettingsSchema);
|