summaryrefslogtreecommitdiff
path: root/src/ejabberd_config.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Integrate nicely with systemdHolger Weiss2021-01-061-21/+24
| | | | | | | | | | | | | | Support systemd's watchdog feature and enable it by default in the unit file, so that ejabberd is auto-restarted if the VM becomes unresponsive. Also, set the systemd startup type to 'notify', so that startup of followup units is delayed until ejabberd signals readiness. While at it, also notify systemd of configuration reload and shutdown states. Note: "NotifyAccess=all" is required as long as "ejabberdctl foreground" runs the VM as a new child process, rather than "exec"ing it. This way, systemd views the ejabberdctl process itself as the main service process, and would discard notifications from other processes by default.
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-0/+2
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Also group duplicated list-like options inside host_config/append_host_configEvgeny Khramtsov2019-11-071-25/+9
|
* Group all duplicated list-like options into a single optionEvgeny Khramtsov2019-11-071-19/+13
|
* Fix loading of third-party modules at startupEvgeny Khramtsov2019-11-071-9/+9
| | | | Fixes #3019
* Allow multiple `modules` sectionEvgeny Khramtsov2019-11-061-1/+3
| | | | Fixes processone/ejabberd-contrib#282
* Log path to third-party configuration fileEvgeny Khramtsov2019-10-201-0/+4
| | | | | This should prevent confusions like the one described at https://stackoverflow.com/q/58353491/2610053
* Replace lager with built-in new logging APIEvgeny Khramtsov2019-10-181-2/+2
| | | | | | | | | | | | | | | This change requires Erlang/OTP-21.0 or higher. The commit also deprecates the following options: - log_rotate_date - log_rate_limit Furthermore, these options have no effect. The logger now fully relies on log_rotate_size, that cannot be 0 anymore. The loglevel option now accepts levels in literal formats. Those are: none, emergency, alert, critical, error, warning, notice, info, debug. Old integer values (0-5) are still supported and automatically converted into literal format.
* Don't log warning when an option is consulted for uknown vhostEvgeny Khramtsov2019-09-251-4/+4
| | | | | | | | Such warnings may be unappropriate in some situation, e.g. when a virtual host is disabled in runtime but some packets for this host are still in transit. Fixes #3037
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-16/+16
|
* Fix typos using codespellEvgeny Khramtsov2019-07-161-1/+1
|
* Don't crash when attempt to get an option for unknown virtual hostEvgeny Khramtsov2019-07-121-2/+11
| | | | Log a warning instead and retry with a global scope
* Make sure configuration file path always represented as binary()Evgeny Khramtsov2019-07-101-20/+24
| | | | Fixes #2936
* Avoid using broad map() type wherever possibleEvgeny Khramtsov2019-06-271-3/+5
|
* Let it crash on unspecified optionEvgeny Khramtsov2019-06-231-15/+9
|
* Validate and set 'version' option at an earlier stageEvgeny Khramtsov2019-06-231-0/+21
|
* Make option 'validate_stream' globalEvgeny Khramtsov2019-06-211-4/+4
|
* Allow multiple definitions of host_config and append_host_configEvgeny Khramtsov2019-06-211-8/+33
|
* Require opt_type/1 callbackEvgeny Khramtsov2019-06-171-2/+3
|
* Remove default_db/1 and add default_db/3Evgeny Khramtsov2019-06-151-14/+14
| | | | Same for default_ram_db/1 and default_ram_db/3
* Use new configuration validatorEvgeny Khramtsov2019-06-141-1454/+616
|
* Rename ejabberd_config:similar_option/2 -> misc:best_match/2Evgeny Khramtsov2019-04-301-30/+2
|
* Provide a suggestion when unknown module is detectedEvgeny Khramtsov2019-04-291-1/+1
|
* Provide a suggestion when unknown option is detectedEvgeny Khramtsov2019-04-291-2/+33
|
* Add ext_mod paths before checking config (processone/ejabberd-contrib#263)Badlop2019-04-031-0/+1
|
* Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski2019-02-271-2/+2
| | | | | | | Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
* Don't crash on malformed 'modules' sectionEvgeny Khramtsov2019-02-191-4/+10
|
* Improve validation of configured language optionsEvgeny Khramtsov2019-01-191-1/+1
|
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Normalize hostname when processing host_configPaweł Chmielowski2018-12-061-3/+5
|
* Don't hide 'undef' exceptions during config validationEvgeny Khramtsov2018-09-191-1/+1
|
* Improve error formattingEvgeny Khramtsov2018-09-171-2/+2
|
* Fix some dialyzer warningsEvgeny Khramtsov2018-09-091-17/+2
|
* Use "localhost" as a default hostEvgeniy Khramtsov2018-08-171-1/+1
|
* Better format invalid values when logging themEvgeniy Khramtsov2018-07-081-6/+7
|
* Better detection of duplicated routes/hostsEvgeniy Khramtsov2018-07-081-1/+28
|
* Only lookup FQDN at configuration (re)loadingEvgeniy Khramtsov2018-07-061-1/+13
|
* Move XMPP stream and SASL processing to xmpp repoEvgeniy Khramtsov2018-07-061-1/+12
|
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-2/+2
|
* Move shaper to p1_utils repoEvgeniy Khramtsov2018-07-051-1/+1
|
* Move mod_irc to ejabberd-contribEvgeniy Khramtsov2018-06-201-1/+0
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-3/+16
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Add ability to modify version stringPaweł Chmielowski2018-06-071-3/+10
|
* Stop ejabberd initialization on invalid/unknown optionsEvgeniy Khramtsov2018-05-091-58/+69
| | | | | | | | | | | | | Since now, ejabberd doesn't ignore unknown options and doesn't allow to have options with malformed values. The rationale for this is to avoid unexpected behaviour during runtime, i.e. to conform to "fail early" approach. Note that it's safe to reload a configuration with potentialy invalid and/or unknown options: this will not halt ejabberd, but will only prevent the configuration from loading. ***NOTE FOR PACKAGE BUILDERS*** This new behaviour should be documented in the upgrade notes.
* Don't produce a crash dump during intentional exitEvgeniy Khramtsov2018-03-291-2/+1
| | | | Also halt faster without relying on timeouts for buffers flushing
* Add 'negotiation_timeout' to the known options listEvgeniy Khramtsov2018-02-201-1/+1
|
* Introduce 'negotiation_timeout'Evgeniy Khramtsov2018-02-201-1/+7
| | | | | | | The option can be used to specify a period (in seconds) for a stream negotiation to complete. If the timer fires, the stream is considered as failed and the underlying connection gets closed. This is a global option (you cannot set it per domain) and the default is 30 seconds.