Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1. module.exports = {
  2. //
  3. // Set the server mode.
  4. // Public servers does not require authentication.
  5. //
  6. // Set to 'false' to enable users.
  7. //
  8. // @type boolean
  9. // @default true
  10. //
  11. public: true,
  12.  
  13. //
  14. // Allow connections from this host.
  15. //
  16. // @type string
  17. // @default "0.0.0.0"
  18. //
  19. host: "0.0.0.0",
  20.  
  21. //
  22. // Set the port to listen on.
  23. //
  24. // @type int
  25. // @default 9000
  26. //
  27. port: 9001,
  28.  
  29. //
  30. // Set the local IP to bind to.
  31. // To listen on all IPs, set to undefined.
  32. //
  33. // @type string
  34. // @default undefined
  35. //
  36. bind: undefined,
  37.  
  38. //
  39. // Sets whether the server is behind a reverse proxy and should honor the
  40. // X-Forwarded-For header or not.
  41. //
  42. // @type boolean
  43. // @default false
  44. //
  45. reverseProxy: false,
  46.  
  47. //
  48. // Set the default theme.
  49. //
  50. // @type string
  51. // @default "themes/example.css"
  52. //
  53. theme: "themes/example.css",
  54.  
  55. //
  56. // Autoload users
  57. //
  58. // When this setting is enabled, your 'users/' folder will be monitored. This is useful
  59. // if you want to add/remove users while the server is running.
  60. //
  61. // @type boolean
  62. // @default true
  63. //
  64. autoload: false,
  65.  
  66. //
  67. // Prefetch URLs
  68. //
  69. // If enabled, The Lounge will try to load thumbnails and site descriptions from
  70. // URLs posted in channels.
  71. //
  72. // @type boolean
  73. // @default false
  74. //
  75. prefetch: false,
  76.  
  77. //
  78. // Prefetch URLs Image Preview size limit
  79. //
  80. // If prefetch is enabled, The Lounge will only display content under the maximum size.
  81. // Default value is 512 (in kB)
  82. //
  83. // @type int
  84. // @default 512
  85. //
  86. prefetchMaxImageSize: 512,
  87.  
  88. //
  89. // Display network
  90. //
  91. // If set to false network settings will not be shown in the login form.
  92. //
  93. // @type boolean
  94. // @default true
  95. //
  96. displayNetwork: true,
  97.  
  98. //
  99. // Lock network
  100. //
  101. // If set to true, users will not be able to modify host, port and tls
  102. // settings and will be limited to the configured network.
  103. //
  104. // @type boolean
  105. // @default false
  106. //
  107. lockNetwork: true,
  108.  
  109. //
  110. // WEBIRC support
  111. //
  112. // If enabled, The Lounge will pass the connecting user's host and IP to the
  113. // IRC server. Note that this requires to obtain a password from the IRC network
  114. // The Lounge will be connecting to and generally involves a lot of trust from the
  115. // network you are connecting to.
  116. //
  117. // Format: {"irc.example.net": {password: "hunter1", hostnamePrefix: "gateway/web/"}
  118. //
  119. // @type object
  120. // @default null
  121. webirc: {"irc.removed.net": {password: "removed", hostnamePrefix: "gateway/web/"},
  122.  
  123. //
  124. // Log settings
  125. //
  126. // Logging has to be enabled per user. If enabled, logs will be stored in
  127. // the '/users/<user>/logs/' folder.
  128. //
  129. // @type object
  130. // @default {}
  131. //
  132. logs: {
  133. //
  134. // Timestamp format
  135. //
  136. // @type string
  137. // @default "YYYY-MM-DD HH:mm:ss"
  138. //
  139. format: "YYYY-MM-DD HH:mm:ss",
  140.  
  141. //
  142. // Timezone
  143. //
  144. // @type string
  145. // @default "UTC+00:00"
  146. //
  147. timezone: "UTC+00:00"
  148. },
  149.  
  150. //
  151. // Default values for the 'Connect' form.
  152. //
  153. // @type object
  154. // @default {}
  155. //
  156. defaults: {
  157. //
  158. // Name
  159. //
  160. // @type string
  161. // @default "Freenode"
  162. //
  163. name: "removed",
  164.  
  165. //
  166. // Host
  167. //
  168. // @type string
  169. // @default "chat.freenode.net"
  170. //
  171. host: "irc.removed.net",
  172.  
  173. //
  174. // Port
  175. //
  176. // @type int
  177. // @default 6697
  178. //
  179. port: 6697,
  180.  
  181. //
  182. // Password
  183. //
  184. // @type string
  185. // @default ""
  186. //
  187. password: "",
  188.  
  189. //
  190. // Enable TLS/SSL
  191. //
  192. // @type boolean
  193. // @default true
  194. //
  195. tls: true,
  196.  
  197. //
  198. // Nick
  199. //
  200. // @type string
  201. // @default "lounge-user"
  202. //
  203. nick: "Guest",
  204.  
  205. //
  206. // Username
  207. //
  208. // @type string
  209. // @default "lounge-user"
  210. //
  211. username: "webchat",
  212.  
  213. //
  214. // Real Name
  215. //
  216. // @type string
  217. // @default "The Lounge User"
  218. //
  219. realname: "The Lounge User",
  220.  
  221. //
  222. // Channels
  223. // This is a comma-separated list.
  224. //
  225. // @type string
  226. // @default "#thelounge"
  227. //
  228. join: "#lobby"
  229. },
  230.  
  231. //
  232. // Set socket.io transports
  233. //
  234. // @type array
  235. // @default ["polling", "websocket"]
  236. //
  237. transports: ["polling", "websocket"],
  238.  
  239. //
  240. // Run The Lounge using encrypted HTTP/2.
  241. // This will fallback to regular HTTPS if HTTP/2 is not supported.
  242. //
  243. // @type object
  244. // @default {}
  245. //
  246. https: {
  247. //
  248. // Enable HTTP/2 / HTTPS support.
  249. //
  250. // @type boolean
  251. // @default false
  252. //
  253. enable: false,
  254.  
  255. //
  256. // Path to the key.
  257. //
  258. // @type string
  259. // @example "sslcert/key.pem"
  260. // @default ""
  261. //
  262. key: "",
  263.  
  264. //
  265. // Path to the certificate.
  266. //
  267. // @type string
  268. // @example "sslcert/key-cert.pem"
  269. // @default ""
  270. //
  271. certificate: ""
  272. },
  273.  
  274. //
  275. // Run The Lounge with identd support.
  276. //
  277. // @type object
  278. // @default {}
  279. //
  280. identd: {
  281. //
  282. // Run the identd daemon on server start.
  283. //
  284. // @type boolean
  285. // @default false
  286. //
  287. enable: false,
  288.  
  289. //
  290. // Port to listen for ident requests.
  291. //
  292. // @type int
  293. // @default 113
  294. //
  295. port: 113
  296. }
  297. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement