Advertisement
ajhlinuxuser

PeerTube-502BadGateWay-production.yaml

Jan 1st, 2019
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. listen:
  2. hostname: 'localhost'
  3. port: 9000
  4.  
  5. # Correspond to your reverse proxy server_name/listen configuration
  6. webserver:
  7. https: true
  8. hostname: 'tube1.tnkr.space'
  9. port: 443
  10.  
  11. # Proxies to trust to get real client IP
  12. # If you run PeerTube just behind a local proxy (nginx), keep 'loopback'
  13. # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet)
  14. trust_proxy:
  15. - 'loopback'
  16.  
  17. # Your database name will be "peertube"+database.suffix
  18. database:
  19. hostname: 'localhost'
  20. port: 5432
  21. suffix: '_prod'
  22. username: 'peertube'
  23. password: (hidden)
  24. pool:
  25. max: 5
  26.  
  27. # Redis server for short time storage
  28. # You can also specify a 'socket' path to a unix socket but first need to
  29. # comment out hostname and port
  30. redis:
  31. hostname: 'localhost'
  32. port: 6379
  33. auth: null
  34. db: 0
  35.  
  36. # SMTP server to send emails
  37. smtp:
  38. hostname: mail.tnkr.space
  39. #port: 465 # If you use StartTLS: 587
  40. port: 587
  41. username: 'peertube'
  42. password: (hidden)
  43. #tls: true # If you use StartTLS: false
  44. tls: false
  45. disable_starttls: false
  46. #ca_file: null # Used for self signed certificates
  47. ca_file: '/var/www/peertube/cert_smtpd.crt'
  48. from_address: 'peertube@tnkr.space'
  49.  
  50. # From the project root directory
  51. storage:
  52. avatars: '/var/www/peertube/storage/avatars/'
  53. videos: '/var/www/peertube/storage/videos/'
  54. logs: '/var/www/peertube/storage/logs/'
  55. previews: '/var/www/peertube/storage/previews/'
  56. thumbnails: '/var/www/peertube/storage/thumbnails/'
  57. torrents: '/var/www/peertube/storage/torrents/'
  58. captions: '/var/www/peertube/storage/captions/'
  59. cache: '/var/www/peertube/storage/cache/'
  60.  
  61. log:
  62. level: 'info' # debug/info/warning/error
  63.  
  64. search:
  65. # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
  66. # If enabled, the associated group will be able to "escape" from the instance follows
  67. # That means they will be able to follow channels, watch videos, list videos of non followed instances
  68. remote_uri:
  69. users: true
  70. anonymous: false
  71.  
  72. trending:
  73. videos:
  74. interval_days: 7 # Compute trending videos for the last x days
  75.  
  76. # Cache remote videos on your server, to help other instances to broadcast the video
  77. # You can define multiple caches using different sizes/strategies
  78. # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following
  79.  
  80. # This is the stupidest stanza structure I have ever seen. You
  81. # MUST indent by multiples of 2 SPACES in order for things to
  82. # work here. I originally replaced the following section with
  83. # tabs to make it look neater, because I'm used to sane
  84. # configuration file parsers that aren't going to freak out over
  85. # whitespace. Well, I broke it, so I am supplying this for
  86. # anyone else who is having trouble with this config file:
  87.  
  88. # 'redundancy:' must be the start of the line.
  89. # 'videos' must have 2 spaces preceeding.
  90. # 'check_interval:' and 'strategies:' must have 4 spaces preceeding
  91.  
  92. redundancy:
  93. videos:
  94. check_interval: '6 hours'
  95. strategies:
  96.  
  97.  
  98. # Now, for the "strategies" sections, the dash has to be
  99. # preceded by 6 space characters, and the text fields need to be
  100. # preceded by 8 space characters.
  101.  
  102. -
  103. size: '1GB'
  104. min_lifetime: '12 hours'
  105. strategy: 'most-views' # Cache videos that have the most views
  106. -
  107. size: '1GB'
  108. min_lifetime: '12 hours'
  109. strategy: 'trending' # Cache trending videos
  110. -
  111. size: '1GB'
  112. min_lifetime: '12 hours'
  113. strategy: 'recently-added' # Cache recently added videos
  114. min_views: 10 # Having at least x views
  115.  
  116.  
  117.  
  118. ###############################################################################
  119. #
  120. # From this point, all the following keys can be overridden by the web interface
  121. # (local-production.json file). If you need to change some values, prefer to
  122. # use the web interface because the configuration will be automatically
  123. # reloaded without any need to restart PeerTube.
  124. #
  125. # /!\ If you already have a local-production.json file, the modification of the
  126. # following keys will have no effect /!\.
  127. #
  128. ###############################################################################
  129.  
  130. cache:
  131. previews:
  132. size: 500 # Max number of previews you want to cache
  133. captions:
  134. size: 500 # Max number of video captions/subtitles you want to cache
  135.  
  136. admin:
  137. email: 'admin@example.com'
  138.  
  139. signup:
  140. enabled: false
  141. limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
  142. requires_email_verification: false
  143. filters:
  144. cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist
  145. whitelist: []
  146. blacklist: []
  147.  
  148. user:
  149. # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
  150. # -1 == unlimited
  151. video_quota: -1
  152. video_quota_daily: -1
  153.  
  154. # If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
  155. # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions.
  156. # Please, do not disable transcoding since many uploaded videos will not work
  157. transcoding:
  158. enabled: true
  159. threads: 1
  160. resolutions: # Only created if the original video has a higher resolution, uses more storage!
  161. 240p: false
  162. 360p: false
  163. 480p: false
  164. 720p: false
  165. 1080p: false
  166.  
  167. import:
  168. # Add ability for your users to import remote videos (from YouTube, torrent...)
  169. videos:
  170. http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
  171. enabled: false
  172. torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file)
  173. enabled: false
  174.  
  175. # Instance settings
  176. instance:
  177. name: 'PeerTube'
  178. short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
  179. description: '' # Support markdown
  180. terms: '' # Support markdown
  181. default_client_route: '/videos/trending'
  182. # By default, "do_not_list" or "blur" or "display" NSFW videos
  183. # Could be overridden per user with a setting
  184. default_nsfw_policy: 'do_not_list'
  185. customizations:
  186. javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
  187. css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
  188. # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:'
  189. robots: |
  190. User-agent: *
  191. Disallow:
  192. # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string.
  193. securitytxt:
  194. "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:"
  195.  
  196. services:
  197. # Cards configuration to format video in Twitter
  198. twitter:
  199. username: '@merdeénorme' # Indicates the Twitter account for the website or platform on which the content was published
  200. # If true, a video player will be embedded in the Twitter feed on PeerTube video share
  201. # If false, we use an image link card that will redirect on your PeerTube instance
  202. # Test on https://cards-dev.twitter.com/validator to see if you are whitelisted
  203. whitelisted: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement