server-config.model.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import { NSFWPolicyType } from '../videos/nsfw-policy.type'
  2. export interface ServerConfig {
  3. serverVersion: string
  4. serverCommit?: string
  5. instance: {
  6. name: string
  7. shortDescription: string
  8. defaultClientRoute: string
  9. defaultNSFWPolicy: NSFWPolicyType
  10. customizations: {
  11. javascript: string
  12. css: string
  13. }
  14. }
  15. signup: {
  16. allowed: boolean,
  17. allowedForCurrentIP: boolean,
  18. requiresEmailVerification: boolean
  19. }
  20. transcoding: {
  21. enabledResolutions: number[]
  22. }
  23. import: {
  24. videos: {
  25. http: {
  26. enabled: boolean
  27. }
  28. torrent: {
  29. enabled: boolean
  30. }
  31. }
  32. }
  33. avatar: {
  34. file: {
  35. size: {
  36. max: number
  37. },
  38. extensions: string[]
  39. }
  40. }
  41. video: {
  42. image: {
  43. size: {
  44. max: number
  45. }
  46. extensions: string[]
  47. },
  48. file: {
  49. extensions: string[]
  50. }
  51. }
  52. videoCaption: {
  53. file: {
  54. size: {
  55. max: number
  56. },
  57. extensions: string[]
  58. }
  59. }
  60. user: {
  61. videoQuota: number
  62. videoQuotaDaily: number
  63. }
  64. }