1
0
Fork 0
peertube/shared/models/server/server-config.model.ts
Rigel Kent ff2c1fe813 feature: IP filtering on signup page
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
2018-05-22 19:44:34 +02:00

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
}
}