Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2018
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. # MySQL server details
  2. # server: domain or IP of MySQL server
  3. # database: a MySQL database that the user specified has read/write access to
  4. # user: username to authenticate as
  5. # password: password for user
  6. mysql:
  7. server: 'localhost'
  8. port: 3306
  9. database: 'cytube3'
  10. user: 'cytube3'
  11. password: '*'
  12. pool-size: 10
  13.  
  14. # Define IPs/ports to listen on
  15. # Each entry MUST define ip and port (ip can be '' to bind all available addresses)
  16. # Each entry should set http, https, and/or io to true to listen for the corresponding
  17. # service on that port. http/io and https/io can be combined, but if http and https
  18. # are both specified, only https will be bound to that port.
  19. #
  20. # If you don't specify a url, the url io.domain:port or https.domain:port will be assumed
  21. # for non-ssl and ssl websockets, respectively. You can override this by specifying the
  22. # url for a websocket listener.
  23. listen:
  24. # Default HTTP server - default interface, port 8080
  25. - ip: ''
  26. port: 8080
  27. http: true
  28. # Uncomment below to enable HTTPS/SSL websockets
  29. # Note that you must also set https->enabled = true in the https definition
  30. - ip: ''
  31. port: 8443
  32. https: true
  33. # io: true
  34. # Default Socket.IO server - default interface, port 1337
  35. - ip: ''
  36. port: 1337
  37. io: true
  38. # Example of how to bind an extra port to HTTP and Socket.IO
  39. # - ip: ''
  40. # port: 8081
  41. # http: true
  42. # io: true
  43. # url: 'http://my-other-thing.site.com:8081'
  44.  
  45. # HTTP server details
  46. http:
  47. # Even though you may specify multiple ports to listen on for HTTP above,
  48. # one port must be specified as default for the purposes of generating
  49. # links with the appropriate port
  50. default-port: 8080
  51. # Specifies the root domain for cookies. If you have multiple domains
  52. # e.g. a.example.com and b.example.com, the root domain is example.com
  53. root-domain: 'diapersabdl.com'
  54. # Specify alternate domains/hosts that are allowed to set the login cookie
  55. # Leave out the http://
  56. alt-domains:
  57. - '127.0.0.1'
  58. # Use express-minify to minify CSS and Javascript
  59. minify: false
  60. # Max-Age for caching. Value should be an integer in milliseconds or a string accepted by
  61. # the `ms` module. Set to 0 to disable caching.
  62. max-age: '7d'
  63. # Set to false to disable gzip compression
  64. gzip: true
  65. # Customize the threshold byte size for applying gzip
  66. gzip-threshold: 1024
  67. # Secret used for signed cookies. Can be anything, but make it unique and hard to guess
  68. cookie-secret: 'grdghtryturdgre'
  69. index:
  70. # Maximum number of channels to display on the index page public channel list
  71. max-entries: 50
  72. # Configure trusted proxy addresses to map X-Forwarded-For to the client IP.
  73. # See also: https://github.com/jshttp/proxy-addr
  74. trust-proxies: ['loopback']
  75.  
  76. # HTTPS server details
  77. https:
  78. enabled: true
  79. # Even though you may specify multiple ports to listen on for HTTPS above,
  80. # one port must be specified as default for the purposes of generating
  81. # links with the appropriate port
  82. default-port: 8443
  83. domain: 'https://diapersabdl.com'
  84. keyfile: '/home/natalka/diapersabdl.com.key'
  85. passphrase: ''
  86. certfile: '/home/natalka/diapersabdl.com.crt'
  87. cafile: '/home/natalka/diapersabdl.com.bundle'
  88. ciphers: 'HIGH:!DSS:!aNULL@STRENGTH'
  89.  
  90. # Page template values
  91. # title goes in the upper left corner, description goes in a <meta> tag
  92. html-template:
  93. title: 'Sync'
  94. description: 'Free, open source synchtube'
  95.  
  96. # Socket.IO server details
  97. io:
  98. # In most cases this will be the same as the http.domain.
  99. # However, if your HTTP traffic is going through a proxy (e.g. cloudflare)
  100. # you will want to set up a passthrough domain for socket.io.
  101. # If the root of this domain is not the same as the root of your HTTP domain
  102. # (or HTTPS if SSL is enabled), logins won't work.
  103. domain: 'https://diapersabdl.com'
  104. # Even though you may specify multiple ports to listen on for HTTP above,
  105. # one port must be specified as default for the purposes of generating
  106. # links with the appropriate port
  107. default-port: 1337
  108. # limit the number of concurrent socket connections per IP address
  109. ip-connection-limit: 10
  110. # Whether or not to use zlib to compress each socket message (this option is
  111. # passed through to socket.io/engine.io).
  112. # Note that while this may save a little bandwidth, it also consumes a lot
  113. # more CPU and will bottleneck pretty quickly under heavy load.
  114. per-message-deflate: false
  115.  
  116. # YouTube v3 API key
  117. # See https://developers.google.com/youtube/registering_an_application
  118. # YouTube links will not work without this!
  119. # Instructions:
  120. # 1. Go to https://console.developers.google.com/project
  121. # 2. Create a new API project
  122. # 3. On the left sidebar, click "Credentials" under "APIs & auth"
  123. # 4. Click "Create new Key" under "Public API access"
  124. # 5. Click "Server key"
  125. # 6. Under "APIs & auth" click "YouTube Data API" and then click "Enable API"
  126. youtube-v3-key: ''
  127. # Limit for the number of channels a user can register
  128. max-channels-per-user: 5
  129. # Limit for the number of accounts an IP address can register
  130. max-accounts-per-ip: 5
  131. # Minimum number of seconds between guest logins from the same IP
  132. guest-login-delay: 60
  133.  
  134. # Allows you to customize the path divider. The /r/ in http://localhost/r/yourchannel
  135. # Acceptable characters are a-z A-Z 0-9 _ and -
  136. channel-path: 'r'
  137. # Allows you to blacklist certain channels. Users will be automatically kicked
  138. # upon trying to join one.
  139. channel-blacklist: []
  140. # Minutes between saving channel state to disk
  141. channel-save-interval: 5
  142. # Determines channel data storage mechanism.
  143. # Defaults to 'file', in which channel data is JSON stringified and saved to a file
  144. # in the `chandump/` folder. This is the legacy behavior of CyTube.
  145. # The other possible option is 'database', in which case each key-value pair of
  146. # channel data is stored as a row in the `channel_data` database table.
  147. # To migrate legacy chandump files to the database, shut down CyTube (to prevent
  148. # concurrent updates), then run `node lib/channel-storage/migrate.js`.
  149. channel-storage:
  150. type: 'file'
  151.  
  152. # Configure periodic clearing of old alias data
  153. aliases:
  154. # Interval (in milliseconds) between subsequent runs of clearing
  155. purge-interval: 3600000
  156. # Maximum age of an alias (in milliseconds) - default 1 month
  157. max-age: 2592000000
  158.  
  159. # Workaround for Vimeo blocking my domain
  160. vimeo-workaround: false
  161.  
  162. # Regular expressions for defining reserved user and channel names and page titles
  163. # The list of regular expressions will be joined with an OR, and compared without
  164. # case sensitivity.
  165. #
  166. # Default: reserve any name containing "admin[istrator]" or "owner" as a word
  167. # but only if it is separated by a dash or underscore (e.g. dadmin is not reserved
  168. # but d-admin is)
  169. reserved-names:
  170. usernames:
  171. - '^(.*?[-_])?admin(istrator)?([-_].*)?$'
  172. - '^(.*?[-_])?owner([-_].*)?$'
  173. channels:
  174. - '^(.*?[-_])?admin(istrator)?([-_].*)?$'
  175. - '^(.*?[-_])?owner([-_].*)?$'
  176. pagetitles: []
  177.  
  178. # Provide a contact list for the /contact page
  179. # Example:
  180. # contacts:
  181. # - name: 'my_name'
  182. # title: 'administrator
  183. # email: 'me@my.site'
  184. contacts: []
  185.  
  186. playlist:
  187. max-items: 4000
  188. # How often (in seconds), mediaUpdate packets are broadcast to clients
  189. update-interval: 5
  190.  
  191. # If set to true, when the ipThrottle and lastguestlogin rate limiters are cleared
  192. # periodically, the garbage collector will be invoked immediately.
  193. # The server must be invoked with node --expose-gc index.js for this to have any effect.
  194. aggressive-gc: false
  195.  
  196. # If you have ffmpeg installed, you can query metadata from raw files, allowing
  197. # server-synched raw file playback. This requires the following:
  198. # * ffmpeg must be installed on the server
  199. ffmpeg:
  200. enabled: false
  201. # Executable name for ffprobe if it is not "ffprobe". On Debian and Ubuntu (on which
  202. # libav is used rather than ffmpeg proper), this is "avprobe"
  203. ffprobe-exec: 'ffprobe'
  204.  
  205. link-domain-blacklist: []
  206.  
  207. # Drop root if started as root!!
  208. setuid:
  209. enabled: false
  210. group: 'users'
  211. user: 'user'
  212. # how long to wait in ms before changing uid/gid
  213. timeout: 15
  214.  
  215. # Allows for external services to access the system commandline
  216. # Useful for setups where stdin isn't available such as when using PM2
  217. service-socket:
  218. enabled: false
  219. socket: 'service.sock'
  220.  
  221. # Twitch Client ID for the data API (used for VOD lookups)
  222. # https://github.com/justintv/Twitch-API/blob/master/authentication.md#developer-setup
  223. twitch-client-id: null
  224.  
  225. poll:
  226. max-options: 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement