thelounge/defaults/config.js

370 lines
6.4 KiB
JavaScript
Raw Normal View History

2014-09-13 18:41:11 +02:00
module.exports = {
2014-09-14 19:50:00 +02:00
//
// Set the server mode.
// Public servers does not require authentication.
//
// Set to 'false' to enable users.
//
// @type boolean
2016-02-09 15:07:50 +01:00
// @default true
2014-09-15 23:54:01 +02:00
//
2014-09-13 18:41:11 +02:00
public: true,
2014-09-15 23:54:01 +02:00
2014-09-14 19:50:00 +02:00
//
// IP address or hostname for the web server to listen on.
// Setting this to undefined will listen on all interfaces.
2014-09-14 19:50:00 +02:00
//
// @type string
// @default undefined
2014-09-14 19:50:00 +02:00
//
host: undefined,
2014-09-15 23:54:01 +02:00
2014-09-14 19:50:00 +02:00
//
// Set the port to listen on.
//
// @type int
// @default 9000
//
port: 9000,
2014-10-11 08:17:41 +02:00
//
// Set the local IP to bind to for outgoing connections. Leave to undefined
// to let the operating system pick its preferred one.
2014-10-11 08:17:41 +02:00
//
// @type string
2016-02-09 15:07:50 +01:00
// @default undefined
2014-10-11 08:17:41 +02:00
//
bind: undefined,
2016-04-03 07:12:49 +02:00
//
// Sets whether the server is behind a reverse proxy and should honor the
// X-Forwarded-For header or not.
//
// @type boolean
// @default false
//
reverseProxy: false,
2014-09-14 19:50:00 +02:00
//
// Set the default theme.
//
// @type string
// @default "themes/example.css"
//
2014-09-13 18:41:11 +02:00
theme: "themes/example.css",
2014-09-14 19:50:00 +02:00
//
2014-09-25 00:23:54 +02:00
// Autoload users
//
// When this setting is enabled, your 'users/' folder will be monitored. This is useful
// if you want to add/remove users while the server is running.
//
// @type boolean
// @default true
//
autoload: true,
2014-10-10 23:12:01 +02:00
//
// Prefetch URLs
//
// If enabled, The Lounge will try to load thumbnails and site descriptions from
2014-10-10 23:12:01 +02:00
// URLs posted in channels.
//
// @type boolean
2016-02-09 15:07:50 +01:00
// @default false
2014-10-10 23:12:01 +02:00
//
2015-09-18 22:11:17 +02:00
prefetch: false,
2014-09-25 00:23:54 +02:00
//
// Prefetch URLs Image Preview size limit
//
// If prefetch is enabled, The Lounge will only display content under the maximum size.
// Default value is 512 (in kB)
//
// @type int
// @default 512
//
prefetchMaxImageSize: 512,
2015-03-22 14:32:01 +01:00
//
// Display network
//
2016-02-21 13:02:35 +01:00
// If set to false network settings will not be shown in the login form.
2015-03-22 14:32:01 +01:00
//
// @type boolean
// @default true
//
displayNetwork: true,
2016-02-21 13:02:35 +01:00
//
// Lock network
//
// If set to true, users will not be able to modify host, port and tls
// settings and will be limited to the configured network.
//
// @type boolean
// @default false
//
lockNetwork: false,
2016-04-03 07:12:49 +02:00
//
// WEBIRC support
//
// If enabled, The Lounge will pass the connecting user's host and IP to the
// IRC server. Note that this requires to obtain a password from the IRC network
// The Lounge will be connecting to and generally involves a lot of trust from the
// network you are connecting to.
//
// Format (standard): {"irc.example.net": "hunter1", "irc.example.org": "passw0rd"}
// Format (function):
// {"irc.example.net": function(client, args, trusted) {
// // here, we return a webirc object fed directly to `irc-framework`
2016-05-06 19:51:38 +02:00
// return {username: "thelounge", password: "hunter1", address: args.ip, hostname: "webirc/"+args.hostname};
2016-04-03 07:12:49 +02:00
// }}
//
// @type string | function(client, args):object(webirc)
// @default null
webirc: null,
2014-09-16 21:47:01 +02:00
//
// Log settings
//
// Logging has to be enabled per user. If enabled, logs will be stored in
2016-05-15 23:15:03 +02:00
// the 'logs/<user>/<network>/' folder.
2014-09-16 21:47:01 +02:00
//
// @type object
// @default {}
//
logs: {
//
// Timestamp format
//
// @type string
// @default "YYYY-MM-DD HH:mm:ss"
//
format: "YYYY-MM-DD HH:mm:ss",
//
// Timezone
//
// @type string
// @default "UTC+00:00"
//
timezone: "UTC+00:00"
},
//
// Maximum number of history lines per channel
//
// Defines the maximum number of history lines that will be kept in
// memory per channel/query, in order to reduce the memory usage of
// the server. Negative means unlimited.
//
// @type integer
// @default -1
maxHistory: -1,
2014-09-15 23:54:01 +02:00
//
// Default values for the 'Connect' form.
//
// @type object
// @default {}
//
defaults: {
//
// Name
//
// @type string
// @default "Freenode"
//
name: "Freenode",
//
// Host
//
// @type string
// @default "chat.freenode.net"
2014-09-15 23:54:01 +02:00
//
host: "chat.freenode.net",
2014-09-15 23:54:01 +02:00
//
// Port
//
// @type int
// @default 6697
//
port: 6697,
//
// Password
//
// @type string
// @default ""
//
password: "",
//
// Enable TLS/SSL
//
// @type boolean
// @default true
//
tls: true,
//
// Nick
//
// @type string
// @default "lounge-user"
2014-09-15 23:54:01 +02:00
//
nick: "lounge-user",
2014-09-15 23:54:01 +02:00
2014-11-02 16:44:52 +01:00
//
// Username
//
// @type string
// @default "lounge-user"
2014-11-02 16:44:52 +01:00
//
username: "lounge-user",
2014-11-02 16:44:52 +01:00
2014-09-15 23:54:01 +02:00
//
// Real Name
//
// @type string
// @default "The Lounge User"
2014-09-15 23:54:01 +02:00
//
realname: "The Lounge User",
2014-09-15 23:54:01 +02:00
//
// Channels
// This is a comma-separated list.
2014-09-15 23:54:01 +02:00
//
// @type string
// @default "#thelounge"
2014-09-15 23:54:01 +02:00
//
join: "#thelounge"
2014-09-27 01:26:21 +02:00
},
2014-11-06 12:48:10 +01:00
//
// Set socket.io transports
//
// @type array
2016-03-19 17:48:36 +01:00
// @default ["polling", "websocket"]
//
2014-11-06 12:48:10 +01:00
transports: ["polling", "websocket"],
2014-09-27 01:26:21 +02:00
//
// Run The Lounge using encrypted HTTP/2.
// This will fallback to regular HTTPS if HTTP/2 is not supported.
2014-09-27 01:26:21 +02:00
//
// @type object
// @default {}
//
https: {
//
// Enable HTTP/2 / HTTPS support.
2014-09-27 01:26:21 +02:00
//
// @type boolean
// @default false
//
enable: false,
//
// Path to the key.
//
// @type string
// @example "sslcert/key.pem"
// @default ""
//
key: "",
//
// Path to the certificate.
//
// @type string
// @example "sslcert/key-cert.pem"
// @default ""
//
certificate: ""
2014-10-09 17:46:12 +02:00
},
//
// Run The Lounge with identd support.
2014-10-09 17:46:12 +02:00
//
// @type object
// @default {}
2014-10-11 19:33:28 +02:00
//
2014-10-09 17:46:12 +02:00
identd: {
//
2014-10-11 19:33:28 +02:00
// Run the identd daemon on server start.
2014-10-09 17:46:12 +02:00
//
// @type boolean
2014-10-11 19:33:28 +02:00
// @default false
//
enable: false,
2014-10-09 17:46:12 +02:00
//
2014-10-11 19:33:28 +02:00
// Port to listen for ident requests.
2014-10-09 17:46:12 +02:00
//
// @type int
2014-10-11 19:33:28 +02:00
// @default 113
2014-10-09 17:46:12 +02:00
//
2014-10-11 19:33:28 +02:00
port: 113
2016-04-26 22:41:08 +02:00
},
//
// Enable oidentd support using the specified file
//
// Example: oidentd: "~/.oidentd.conf",
//
// @type string
// @default null
//
oidentd: null,
2016-07-30 03:20:38 +02:00
//
// LDAP authentication settings (only available if public=false)
// @type object
// @default {}
//
ldap: {
//
// Enable LDAP user authentication
//
// @type boolean
// @default false
//
enable: false,
//
// LDAP server URL
//
// @type string
//
url: "ldaps://example.com",
//
// LDAP base dn
//
// @type string
//
baseDN: "ou=accounts,dc=example,dc=com",
//
// LDAP primary key
//
// @type string
// @default "uid"
//
primaryKey: "uid"
},
2016-07-30 03:20:38 +02:00
// Enables extra debugging output. Turn this on if you experience
// IRC connection issues and want to file a bug report.
//
// @type boolean
// @default false
//
debug: false,
2014-09-13 18:41:11 +02:00
};