aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_fileserver.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix errors and warnings for "rebar3 edoc"Badlop2022-05-171-2/+5
|
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Rewrite sentences in modules options examples, to not break Docs indentationBadlop2020-04-281-4/+3
|
* Make http heades passed in custom_headers override builtin headersPaweł Chmielowski2020-02-211-7/+9
| | | | | | Previously we just appended them, so sometimes we just had duplicates This fixes issue #3056
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-1/+86
| | | | | | | 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).
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-5/+5
|
* Don't retain module option on gen_mod supervisorEvgeny Khramtsov2019-08-041-1/+2
| | | | | | When module's options were updated (e.g. by reloading ejabberd.yml) and, later, the module's process crashed, gen_mod supervisor restarts the process with outdated options. This is now fixed.
* Fix typos using codespellEvgeny Khramtsov2019-07-161-1/+1
|
* mod_http_fileserver: Unregister 'reopen_log_hook'Holger Weiss2019-07-141-4/+7
| | | | | Unregister the global 'reopen_log_hook' on termination if the module isn't loaded for another host.
* Process unexpected messages uniformlyEvgeny Khramtsov2019-07-121-3/+5
|
* Use maps instead of dictEvgeny Khramtsov2019-07-081-2/+2
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-2/+2
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-42/+24
|
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-3/+2
| | | | | | | | | 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
* Optimize HTTP requests memory usageEvgeniy Khramtsov2018-05-141-2/+1
| | | | | | | | | | | | | | | Due to historical reasons, ejabberd loads the whole file/data into the memory when serving an HTTP request. This is now improved: 1) For GET requests ejabberd uses sendfile(2) if the underlying connection is HTTP and falls back to read/write loop with 64kb buffer for HTTPS connections. This type of requests are handled by mod_http_fileserver, mod_http_upload, ejabberd_captcha, etc 2) POST requests are now limited to 20Mb and are fully downloaded into the memory for further processing (by ejabberd_web_admin, mod_bosh, etc) 3) PUT requests (e.g. for mod_http_upload) are handled by read/write loop with 64kb buffer
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-52/+33
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* More fix in mod_http_fileserver to log URLs with/out query elements (#2021)Badlop2017-10-061-6/+8
|
* Improve logging of mismatched HostsEvgeniy Khramtsov2017-10-051-2/+4
|
* Log request in access.log even when Host doesn't matchEvgeniy Khramtsov2017-10-051-1/+3
|
* Don't report Host mismatch as an errorEvgeniy Khramtsov2017-10-051-4/+4
|
* Accept routes in Host header and map them to vhostsEvgeniy Khramtsov2017-10-051-13/+20
|
* Fix crash in mod_http_fileserver when logging URL with query elements (#2021)Badlop2017-10-021-2/+8
|
* Request basic auth dialog from browserPaweł Chmielowski2017-07-281-3/+13
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-23/+13
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Teach mod_http_fileserver ability to send 304 Not ModifiedPaweł Chmielowski2017-03-171-9/+29
|
* Don't polute log with known content typesEvgeniy Khramtsov2017-02-241-3/+3
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-17/+26
|
* Attach modules to gen_mod's supervisorEvgeniy Khramtsov2017-02-141-30/+3
|
* Improve modules start/stop proceduresEvgeniy Khramtsov2017-02-141-2/+3
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-6/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cyrsasl.erl src/ejabberd_c2s.erl src/ejabberd_cluster.erl src/ejabberd_frontend_socket.erl src/ejabberd_node_groups.erl src/ejabberd_router.erl src/mod_bosh.erl src/mod_ip_blacklist.erl src/mod_muc_mnesia.erl src/mod_offline.erl src/mod_proxy65_sm.erl
| * Adopt remaining code to support new hooksEvgeniy Khramtsov2017-01-091-6/+10
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Add auth to mod_http_fileserverPaweł Chmielowski2016-11-171-26/+62
|
* Rewrite several modules to use XML generatorEvgeniy Khramtsov2016-07-291-3/+0
|
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-1/+4
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* Remove useless export_all flagChristophe Romain2015-11-231-2/+0
|
* Export content_type/3 needed by mod_http_uploadChristophe Romain2015-11-231-0/+3
|
* Print content types more gracefullyEvgeniy Khramtsov2015-07-171-3/+10
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-2/+15
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Use 'request' record definition from header fileHolger Weiss2014-10-161-6/+1
| | | | This fixes a 'badrecord' crash in mod_http_fileserver.
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address
| * Update FSF addressJamie Nguyen2014-02-221-4/+3
| |
* | Update copyright dates to 2014 (EJAB-1679)Badlop2014-03-131-1/+1
|/
* Normalize HTTP path (thanks to Justin Kirby)Badlop2013-06-251-1/+2
|