d9eaee3939
* add user account email verificiation includes server and client code to: * enable verificationRequired via custom config * send verification email with registration * ask for verification email * verify via email * prevent login if not verified and required * conditional client links to ask for new verification email * allow login for verified=null these are users created when verification not required should still be able to login when verification is enabled * refactor email verifcation pr * change naming from verified to emailVerified * change naming from askVerifyEmail to askSendVerifyEmail * undo unrelated automatic prettier formatting on api/config * use redirectService for home * remove redundant success notification on email verified * revert test.yaml smpt host
72 lines
1 KiB
TypeScript
72 lines
1 KiB
TypeScript
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
|
|
|
|
export interface ServerConfig {
|
|
serverVersion: string
|
|
|
|
instance: {
|
|
name: string
|
|
shortDescription: string
|
|
defaultClientRoute: string
|
|
defaultNSFWPolicy: NSFWPolicyType
|
|
customizations: {
|
|
javascript: string
|
|
css: string
|
|
}
|
|
}
|
|
|
|
signup: {
|
|
allowed: boolean,
|
|
allowedForCurrentIP: boolean,
|
|
requiresEmailVerification: boolean
|
|
}
|
|
|
|
transcoding: {
|
|
enabledResolutions: number[]
|
|
}
|
|
|
|
import: {
|
|
videos: {
|
|
http: {
|
|
enabled: boolean
|
|
}
|
|
torrent: {
|
|
enabled: boolean
|
|
}
|
|
}
|
|
}
|
|
|
|
avatar: {
|
|
file: {
|
|
size: {
|
|
max: number
|
|
},
|
|
extensions: string[]
|
|
}
|
|
}
|
|
|
|
video: {
|
|
image: {
|
|
size: {
|
|
max: number
|
|
}
|
|
extensions: string[]
|
|
},
|
|
file: {
|
|
extensions: string[]
|
|
}
|
|
}
|
|
|
|
videoCaption: {
|
|
file: {
|
|
size: {
|
|
max: number
|
|
},
|
|
extensions: string[]
|
|
}
|
|
}
|
|
|
|
user: {
|
|
videoQuota: number
|
|
videoQuotaDaily: number
|
|
}
|
|
}
|