ff2c1fe813
disable registration form on IP not in range checking the CIDR list before filtering with it placing the cidr filters as an attribute object in the config
50 lines
744 B
TypeScript
50 lines
744 B
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
|
|
}
|
|
|
|
transcoding: {
|
|
enabledResolutions: number[]
|
|
}
|
|
|
|
avatar: {
|
|
file: {
|
|
size: {
|
|
max: number
|
|
},
|
|
extensions: string[]
|
|
}
|
|
}
|
|
|
|
video: {
|
|
image: {
|
|
size: {
|
|
max: number
|
|
}
|
|
extensions: string[]
|
|
},
|
|
file: {
|
|
extensions: string[]
|
|
}
|
|
}
|
|
|
|
user: {
|
|
videoQuota: number
|
|
}
|
|
}
|