mumle-server.ini.j2 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. ; Murmur configuration file.
  2. ;
  3. ; General notes:
  4. ; * Settings in this file are default settings and many of them can be overridden
  5. ; with virtual server specific configuration via the Ice or DBus interface.
  6. ; * Due to the way this configuration file is read some rules have to be
  7. ; followed when specifying variable values (as in variable = value):
  8. ; * Make sure to quote the value when using commas in strings or passwords.
  9. ; NOT variable = super,secret BUT variable = "super,secret"
  10. ; * Make sure to escape special characters like '\' or '"' correctly
  11. ; NOT variable = """ BUT variable = "\""
  12. ; NOT regex = \w* BUT regex = \\w*
  13. ; Path to database. If blank, will search for
  14. ; murmur.sqlite in default locations or create it if not found.
  15. database={{ murmur_database }}
  16. ; Murmur defaults to using SQLite with its default rollback journal.
  17. ; In some situations, using SQLite's write-ahead log (WAL) can be
  18. ; advantageous.
  19. ; If you encounter slowdowns when moving between channels and similar
  20. ; operations, enabling the SQLite write-ahead log might help.
  21. ;
  22. ; To use SQLite's write-ahead log, set sqlite_wal to one of the following
  23. ; values:
  24. ;
  25. ; 0 - Use SQLite's default rollback journal.
  26. ; 1 - Use write-ahead log with synchronous=NORMAL.
  27. ; If Murmur crashes, the database will be in a consistent state, but
  28. ; the most recent changes might be lost if the operating system did
  29. ; not write them to disk yet. This option can improve Murmur's
  30. ; interactivity on busy servers, or servers with slow storage.
  31. ; 2 - Use write-ahead log with synchronous=FULL.
  32. ; All database writes are synchronized to disk when they are made.
  33. ; If Murmur crashes, the database will be include all completed writes.
  34. ;sqlite_wal=0
  35. ; If you wish to use something other than SQLite, you'll need to set the name
  36. ; of the database above, and also uncomment the below.
  37. ; Sticking with SQLite is strongly recommended, as it's the most well tested
  38. ; and by far the fastest solution.
  39. ;
  40. ;dbDriver=QMYSQL
  41. ;dbUsername=
  42. ;dbPassword=
  43. ;dbHost=
  44. ;dbPort=
  45. ;dbPrefix=murmur_
  46. ;dbOpts=
  47. {% if murmur_dbdriver %}
  48. dbDriver={{ murmur_dbdriver }}
  49. dbUsername={{ murmur_dbusername }}
  50. dbPassword={{ murmur_dbpassword }}
  51. dbHost={{ murmur_dbhost }}
  52. dbPort={{ murmur_dbport }}
  53. dbPrefix={{ murmur_dbprefix }}
  54. dbOpts={{ murmur_dbopts }}
  55. {% endif %}
  56. ; Murmur defaults to not using D-Bus. If you wish to use dbus, which is one of the
  57. ; RPC methods available in Murmur, please specify so here.
  58. ;
  59. ;dbus=session
  60. ; Alternate D-Bus service name. Only use if you are running distinct
  61. ; murmurd processes connected to the same D-Bus daemon.
  62. ;dbusservice=net.sourceforge.mumble.murmur
  63. ; If you want to use ZeroC Ice to communicate with Murmur, you need
  64. ; to specify the endpoint to use. Since there is no authentication
  65. ; with ICE, you should only use it if you trust all the users who have
  66. ; shell access to your machine.
  67. ; Please see the ICE documentation on how to specify endpoints.
  68. ice="{{ murmur_ice }}"
  69. ; Ice primarily uses local sockets. This means anyone who has a
  70. ; user account on your machine can connect to the Ice services.
  71. ; You can set a plaintext "secret" on the Ice connection, and
  72. ; any script attempting to access must then have this secret
  73. ; (as context with name "secret").
  74. ; Access is split in read (look only) and write (modify)
  75. ; operations. Write access always includes read access,
  76. ; unless read is explicitly denied (see note below).
  77. ;
  78. ; Note that if this is uncommented and with empty content,
  79. ; access will be denied.
  80. {% if murmur_icesecretread %}
  81. icesecretread={{ murmur_icesecretread }}
  82. {% else %}
  83. ;icesecretread=
  84. {% endif %}
  85. {% if murmur_icesecretwrite %}
  86. icesecretwrite={{ murmur_icesecretwrite }}
  87. {% else %}
  88. icesecretwrite=
  89. {% endif %}
  90. ; If you want to expose Murmur's experimental gRPC API, you
  91. ; need to specify an address to bind on.
  92. ; Note: not all builds of Murmur support gRPC. If gRPC is not
  93. ; available, Murmur will warn you in its log output.
  94. ;grpc="127.0.0.1:50051"
  95. ; Specifying both a certificate and key file below will cause gRPC to use
  96. ; secured, TLS connections.
  97. ;grpccert=""
  98. ;grpckey=""
  99. ; How many login attempts do we tolerate from one IP
  100. ; inside a given timeframe before we ban the connection?
  101. ; Note that this is global (shared between all virtual servers), and that
  102. ; it counts both successfull and unsuccessfull connection attempts.
  103. ; Set either Attempts or Timeframe to 0 to disable.
  104. ;autobanAttempts = 10
  105. ;autobanTimeframe = 120
  106. ;autobanTime = 300
  107. autobanAttempts={{ murmur_autobanattempts }}
  108. autobanTimeframe={{ murmur_autobantimeframe }}
  109. autobanTime={{ murmur_autobantime }}
  110. ; Specifies the file Murmur should log to. By default, Murmur
  111. ; logs to the file 'murmur.log'. If you leave this field blank
  112. ; on Unix-like systems, Murmur will force itself into foreground
  113. ; mode which logs to the console.
  114. ;logfile=murmur.log
  115. logfile={{ murmur_logfile }}
  116. ; If set, Murmur will write its process ID to this file
  117. ; when running in daemon mode (when the -fg flag is not
  118. ; specified on the command line). Only available on
  119. ; Unix-like systems.
  120. ;pidfile=
  121. pidfile={{ murmur_pidfile }}
  122. ; The below will be used as defaults for new configured servers.
  123. ; If you're just running one server (the default), it's easier to
  124. ; configure it here than through D-Bus or Ice.
  125. ;
  126. ; Welcome message sent to clients when they connect.
  127. ; If the welcome message is set to an empty string,
  128. ; no welcome message will be sent to clients.
  129. welcometext="{{ murmur_welcometext }}"
  130. ; Port to bind TCP and UDP sockets to.
  131. port={{ murmur_port }}
  132. ; Specific IP or hostname to bind to.
  133. ; If this is left blank (default), Murmur will bind to all available addresses.
  134. ;host=
  135. {% if murmur_host %}
  136. host={{ murmur_host }}
  137. {% endif %}
  138. ; Password to join server.
  139. serverpassword={{ murmur_serverpassword }}
  140. ; Maximum bandwidth (in bits per second) clients are allowed
  141. ; to send speech at.
  142. bandwidth={{ murmur_bandwidth }}
  143. ; Maximum number of concurrent clients allowed.
  144. users={{ murmur_users }}
  145. ; Per-user rate limiting
  146. ;
  147. ; These two settings allow to configure the per-user rate limiter for some
  148. ; command messages sent from the client to the server. The messageburst setting
  149. ; specifies an amount of messages which are allowed in short bursts. The
  150. ; messagelimit setting specifies the number of messages per second allowed over
  151. ; a longer period. If a user hits the rate limit, his packages are then ignored
  152. ; for some time. Both of these settings have a minimum of 1 as setting either to
  153. ; 0 could render the server unusable.
  154. messageburst=5
  155. messagelimit=1
  156. ; Respond to UDP ping packets.
  157. ;
  158. ; Setting to true exposes the current user count, the maximum user count, and
  159. ; the server's maximum bandwidth per client to unauthenticated users. In the
  160. ; Mumble client, this information is shown in the Connect dialog.
  161. allowping=true
  162. ; Amount of users with Opus support needed to force Opus usage, in percent.
  163. ; 0 = Always enable Opus, 100 = enable Opus if it's supported by all clients.
  164. ;opusthreshold=100
  165. opusthreshold={{ murmur_opusthreshold }}
  166. ; Maximum depth of channel nesting. Note that some databases like MySQL using
  167. ; InnoDB will fail when operating on deeply nested channels.
  168. ;channelnestinglimit=10
  169. channelnestinglimit={{ murmur_channelnestinglimit }}
  170. ; Maximum number of channels per server. 0 for unlimited. Note that an
  171. ; excessive number of channels will impact server performance
  172. ;channelcountlimit=1000
  173. {% if murmur_channelcountlimit %}
  174. channelcountlimit={{ murmur_channelcountlimit }}
  175. {% endif %}
  176. ; Regular expression used to validate channel names.
  177. ; (Note that you have to escape backslashes with \ )
  178. ;channelname=[ \\-=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+
  179. {% if murmur_channelname %}
  180. channelname={{ murmur_channelname }}
  181. {% endif %}
  182. ; Regular expression used to validate user names.
  183. ; (Note that you have to escape backslashes with \ )
  184. ;username=[-=\\w\\[\\]\\{\\}\\(\\)\\@\\|\\.]+
  185. {% if murmur_username %}
  186. username={{ murmur_username }}
  187. {% endif %}
  188. ; Maximum length of text messages in characters. 0 for no limit.
  189. ;textmessagelength=5000
  190. textmessagelength={{ murmur_textmessagelength }}
  191. ; Maximum length of text messages in characters, with image data. 0 for no limit.
  192. ;imagemessagelength=131072
  193. imagemessagelength={{ murmur_imagemessagelength }}
  194. ; Allow clients to use HTML in messages, user comments and channel descriptions?
  195. ;allowhtml=true
  196. allowhtml={{ murmur_allowhtml }}
  197. ; Murmur retains the per-server log entries in an internal database which
  198. ; allows it to be accessed over D-Bus/ICE.
  199. ; How many days should such entries be kept?
  200. ; Set to 0 to keep forever, or -1 to disable logging to the DB.
  201. ;logdays=31
  202. logdays={{ murmur_logdays }}
  203. {% if murmur_registername %}
  204. ; To enable public server registration, the serverpassword must be blank, and
  205. ; this must all be filled out.
  206. ; The password here is used to create a registry for the server name; subsequent
  207. ; updates will need the same password. Don't lose your password.
  208. ; The URL is your own website, and only set the registerHostname for static IP
  209. ; addresses.
  210. ; Only uncomment the 'registerName' parameter if you wish to give your "Root" channel a custom name.
  211. ;
  212. registerName={{ murmur_registername }}
  213. registerPassword={{ murmur_registerpassword }}
  214. registerUrl={{ murmur_registerurl }}
  215. registerHostname={{ murmur_registerhostname }}
  216. {% endif %}
  217. ; If this option is enabled, the server will announce its presence via the
  218. ; bonjour service discovery protocol. To change the name announced by bonjour
  219. ; adjust the registerName variable.
  220. ; See http://developer.apple.com/networking/bonjour/index.html for more information
  221. ; about bonjour.
  222. ;bonjour=True
  223. bonjour={{ murmur_bonjour }}
  224. ; If you have a proper SSL certificate, you can provide the filenames here.
  225. ; Otherwise, Murmur will create its own certificate automatically.
  226. ;sslCert=
  227. ;sslKey=
  228. {% if murmur_sslcert %}
  229. sslCert={{ murmur_sslcert }}
  230. sslKey={{ murmur_sslkey }}
  231. sslCa={{ murmur_sslca }}
  232. {% endif %}
  233. ; The sslDHParams option allows you to specify a PEM-encoded file with
  234. ; Diffie-Hellman parameters, which will be used as the default Diffie-
  235. ; Hellman parameters for all virtual servers.
  236. ;
  237. ; Instead of pointing sslDHParams to a file, you can also use the option
  238. ; to specify a named set of Diffie-Hellman parameters for Murmur to use.
  239. ; Murmur comes bundled with the Diffie-Hellman parameters from RFC 7919.
  240. ; These parameters are available by using the following names:
  241. ;
  242. ; @ffdhe2048, @ffdhe3072, @ffdhe4096, @ffdhe6144, @ffdhe8192
  243. ;
  244. ; By default, Murmur uses @ffdhe2048.
  245. ;sslDHParams=@ffdhe2048
  246. ; The sslCiphers option chooses the cipher suites to make available for use
  247. ; in SSL/TLS. This option is server-wide, and cannot be set on a
  248. ; per-virtual-server basis.
  249. ;
  250. ; This option is specified using OpenSSL cipher list notation (see
  251. ; https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT).
  252. ;
  253. ; It is recommended that you try your cipher string using 'openssl ciphers <string>'
  254. ; before setting it here, to get a feel for which cipher suites you will get.
  255. ;
  256. ; After setting this option, it is recommend that you inspect your Murmur log
  257. ; to ensure that Murmur is using the cipher suites that you expected it to.
  258. ;
  259. ; Note: Changing this option may impact the backwards compatibility of your
  260. ; Murmur server, and can remove the ability for older Mumble clients to be able
  261. ; to connect to it.
  262. ;sslCiphers=EECDH+AESGCM:EDH+aRSA+AESGCM:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-SHA:AES128-SHA
  263. ; If Murmur is started as root, which user should it switch to?
  264. ; This option is ignored if Murmur isn't started with root privileges.
  265. ;uname=
  266. uname={{ murmur_uname }}
  267. ; If this options is enabled, only clients which have a certificate are allowed
  268. ; to connect.
  269. ;certrequired=False
  270. certrequired={{ murmur_certrequired }}
  271. ; If enabled, clients are sent information about the servers version and operating
  272. ; system.
  273. ;sendversion=True
  274. sendversion={{ murmur_sendversion }}
  275. ; This sets password hash storage to legacy mode (1.2.4 and before)
  276. ; (Note that setting this to true is insecure and should not be used unless absolutely necessary)
  277. ;legacyPasswordHash=false
  278. ; By default a strong amount of PBKDF2 iterations are chosen automatically. If >0 this setting
  279. ; overrides the automatic benchmark and forces a specific number of iterations.
  280. ; (Note that you should only change this value if you know what you are doing)
  281. ;kdfIterations=-1
  282. ; You can configure any of the configuration options for Ice here. We recommend
  283. ; leave the defaults as they are.
  284. ; Please note that this section has to be last in the configuration file.
  285. ;
  286. [Ice]
  287. Ice.Warn.UnknownProperties={{ murmur_icewarnunknownproperties }}
  288. Ice.MessageSizeMax={{ murmur_icemessagesizemax }}