- config = writeText "production.yaml" ''
- listen:
- hostname: 'localhost'
- port: ${env.listenPort}
- webserver:
- https: true
- hostname: 'peertube.immae.eu'
- port: 443
- trust_proxy:
- - 'loopback'
- database:
- hostname: '${env.postgresql.socket}'
- port: 5432
- suffix: '_prod'
- username: '${env.postgresql.user}'
- password: '${env.postgresql.password}'
- pool:
- max: 5
- redis:
- socket: '${env.redis.socket}'
- auth: null
- db: ${env.redis.db_index}
- ldap:
- enable: true
- ldap_only: false
- url: ldaps://${env.ldap.host}/${env.ldap.base}
- bind_dn: ${env.ldap.dn}
- bind_password: ${env.ldap.password}
- base: ${env.ldap.base}
- mail_entry: "mail"
- user_filter: "${env.ldap.filter}"
- smtp:
- transport: sendmail
- sendmail: '/run/wrappers/bin/sendmail'
- hostname: null
- port: 465 # If you use StartTLS: 587
- username: null
- password: null
- tls: true # If you use StartTLS: false
- disable_starttls: false
- ca_file: null # Used for self signed certificates
- from_address: 'peertube@immae.eu'
- storage:
- tmp: '${varDir}/storage/tmp/'
- avatars: '${varDir}/storage/avatars/'
- videos: '${varDir}/storage/videos/'
- redundancy: '${varDir}/storage/videos/'
- logs: '${varDir}/storage/logs/'
- previews: '${varDir}/storage/previews/'
- thumbnails: '${varDir}/storage/thumbnails/'
- torrents: '${varDir}/storage/torrents/'
- captions: '${varDir}/storage/captions/'
- cache: '${varDir}/storage/cache/'
- log:
- level: 'info'
- search:
- remote_uri:
- users: true
- anonymous: false
- trending:
- videos:
- interval_days: 7
- redundancy:
- videos:
- check_interval: '1 hour' # How often you want to check new videos to cache
- strategies: # Just uncomment strategies you want
- # Following are saved in local-production.json
- cache:
- previews:
- size: 500 # Max number of previews you want to cache
- captions:
- size: 500 # Max number of video captions/subtitles you want to cache
- admin:
- email: 'peertube@immae.eu'
- contact_form:
+ config = ''
+ listen:
+ hostname: 'localhost'
+ port: ${env.listenPort}
+ webserver:
+ https: true
+ hostname: 'peertube.immae.eu'
+ port: 443
+ trust_proxy:
+ - 'loopback'
+ database:
+ hostname: '${env.postgresql.socket}'
+ port: 5432
+ suffix: '_prod'
+ username: '${env.postgresql.user}'
+ password: '${env.postgresql.password}'
+ pool:
+ max: 5
+ redis:
+ socket: '${env.redis.socket}'
+ auth: null
+ db: ${env.redis.db_index}
+ ldap:
+ enable: true
+ ldap_only: false
+ url: ldaps://${env.ldap.host}/${env.ldap.base}
+ bind_dn: ${env.ldap.dn}
+ bind_password: ${env.ldap.password}
+ base: ${env.ldap.base}
+ mail_entry: "mail"
+ user_filter: "${env.ldap.filter}"
+ smtp:
+ transport: sendmail
+ sendmail: '/run/wrappers/bin/sendmail'
+ hostname: null
+ port: 465 # If you use StartTLS: 587
+ username: null
+ password: null
+ tls: true # If you use StartTLS: false
+ disable_starttls: false
+ ca_file: null # Used for self signed certificates
+ from_address: 'peertube@tools.immae.eu'
+ storage:
+ tmp: '${varDir}/storage/tmp/'
+ avatars: '${varDir}/storage/avatars/'
+ videos: '${varDir}/storage/videos/'
+ redundancy: '${varDir}/storage/videos/'
+ logs: '${varDir}/storage/logs/'
+ previews: '${varDir}/storage/previews/'
+ thumbnails: '${varDir}/storage/thumbnails/'
+ torrents: '${varDir}/storage/torrents/'
+ captions: '${varDir}/storage/captions/'
+ cache: '${varDir}/storage/cache/'
+ log:
+ level: 'info'
+ search:
+ remote_uri:
+ users: true
+ anonymous: false
+ trending:
+ videos:
+ interval_days: 7
+ redundancy:
+ videos:
+ check_interval: '1 hour' # How often you want to check new videos to cache
+ strategies: # Just uncomment strategies you want
+ # Following are saved in local-production.json
+ cache:
+ previews:
+ size: 500 # Max number of previews you want to cache
+ captions:
+ size: 500 # Max number of video captions/subtitles you want to cache
+ admin:
+ email: 'peertube@tools.immae.eu'
+ contact_form:
+ enabled: true
+ signup:
+ enabled: false
+ limit: 10
+ requires_email_verification: false
+ filters:
+ cidr:
+ whitelist: []
+ blacklist: []
+ user:
+ video_quota: -1
+ video_quota_daily: -1
+ transcoding:
+ enabled: false
+ allow_additional_extensions: true
+ threads: 1
+ resolutions:
+ 240p: false
+ 360p: false
+ 480p: true
+ 720p: true
+ 1080p: true
+ hls:
+ enabled: false
+ import:
+ videos:
+ http: