aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_upload.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Return userinfo from misc:uri_parsePaweł Chmielowski2022-05-061-1/+1
|
* Improve misc:uri_parsePaweł Chmielowski2022-05-051-1/+1
|
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Update documentation to match the implemented options values (#3675)Badlop2021-09-141-2/+3
|
* Use specific syntax so modules and top-level will be linksBadlop2021-08-231-1/+1
| | | | | | If we use _`whatever`_ here in ejabberd man pages, it is converted to *`whatever`* in markdown, and docs.ejabberd.im/Makefile converts to the proper links
* Improve formatting and add sections linksBadlop2021-08-231-2/+3
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Use old http_uri, crypto and pg2 only with old Erlang/OTP (#3284)Badlop2020-06-011-3/+3
|
* Make http heades passed in custom_headers override builtin headersPaweł Chmielowski2020-02-211-3/+3
| | | | | | 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
|
* mod_http_upload: Document correct put_url defaultHolger Weiss2020-01-271-1/+1
| | | | Closes #3152.
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-0/+177
| | | | | | | 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-39/+39
|
* Improve ACME implementationEvgeny Khramtsov2019-09-201-19/+1
| | | | Fixes #2487, fixes #2590, fixes #2638
* Implement reload/3 for mod_http_uploadEvgeny Khramtsov2019-08-061-72/+115
|
* 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.
* Introduce 'vcard' option for the modules supporting vCardsEvgeny Khramtsov2019-08-021-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The mapping between vCard's XML elements and YAML elements of 'vcard' option is straightforward. For example, if you want mod_muc to return the following vCard: ``` <vCard xmlns='vcard-temp'> <FN>Conferences</FN> <ADR> <WORK/> <STREET>Elm Street</STREET> </ADR> </vCard> ``` you need to set the configuration as: ``` modules: ... mod_muc: vcard: fn: Conferences adr: - work: true street: Elm Street ... ```
* Process unexpected messages uniformlyEvgeny Khramtsov2019-07-121-3/+3
|
* Avoid using broad map() type wherever possibleEvgeny Khramtsov2019-06-271-1/+2
|
* Fix type specsEvgeny Khramtsov2019-06-271-1/+1
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-4/+4
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-4/+4
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* Get rid of "well-known" typeEvgeny Khramtsov2019-06-151-2/+2
|
* Warn about 'service_url' option during config transformationEvgeny Khramtsov2019-06-141-9/+2
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-84/+68
|
* mod_http_upload: Avoid catch-all error handlingHolger Weiss2019-05-271-2/+0
|
* mod_http_upload: Case-insensitive host comparisonHolger Weiss2019-05-121-3/+7
| | | | | | | Perform a case-insensitive lookup of the host name specified by the HTTP client. Fixes #2827.
* Improve code for directory deletionEvgeny Khramtsov2019-04-291-6/+2
|
* Feed whole image to eimp:identify/1Evgeny Khramtsov2019-04-141-37/+32
| | | | Fixes #2859
* mod_http_upload: Log nicer warning on unknown hostHolger Weiss2019-02-281-9/+27
| | | | | | If an HTTP client issues a request against an unknown host, log a readable warning (rather than an unreadable error) and respond with a 404 (rather than a 500) status.
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Switch more log message to warning levelEvgeny Khramtsov2018-09-191-10/+10
| | | | | The commit is supposed to improve logging at loglevel 3, which is the recommended level for high loaded ejabberd servers
* mod_http_upload: Log error if 'put_url' is reusedHolger Weiss2018-09-171-2/+9
| | | | | Log a proper [error] message if a single 'put_url' is used for multiple virtual hosts.
* mod_http_upload: Adjust default value of 'put_url'Holger Weiss2018-07-181-1/+1
| | | | | Let the default 'put_url' point to the HTTPS listener specified in the new default configuration.
* mod_http_upload: Deprecate 'service_url' optionHolger Weiss2018-07-181-1/+4
| | | | Users should migrate to the 'external_secret' interface.
* mod_http_upload: Avoid function-like macrosHolger Weiss2018-07-171-27/+31
|
* Move cancel_timer/1 function into 'misc' moduleHolger Weiss2018-07-171-12/+1
|
* mod_http_upload: Add "Allow" to OPTIONS responseHolger Weiss2018-07-171-1/+2
| | | | | | RFC 2616 says: "A 200 response SHOULD include any header fields that indicate optional features implemented by the server and applicable to that resource (e.g., Allow) [...]."
* mod_http_upload: Avoid timers from timer moduleHolger Weiss2018-07-161-8/+19
| | | | | Use erlang:start_timer/3 instead of timer:send_after/2, as the former is more efficient.
* mod_http_upload: Don't store "external" slotsHolger Weiss2018-07-151-7/+7
| | | | | Don't store requested upload slots if an 'external_secret' is configured.
* mod_http_upload_quota: Fix process name lookupHolger Weiss2018-07-101-1/+1
| | | | | | Fix mod_http_upload_quota's process name lookup for the case where a slot is requested by a JID whose domain part is not the virtual host the mod_http_upload_quota process is running on.
* Better detection of duplicated routes/hostsEvgeniy Khramtsov2018-07-081-2/+2
|
* fix HMAC for external_secretChristoph Scholz2018-07-071-1/+1
|
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-2/+2
|
* mod_http_upload: Treat file and network errors differentlyEvgeniy Khramtsov2018-07-041-2/+6
|
* HTTP Upload: introduce new option 'external_secret'Evgeniy Khramtsov2018-07-021-16/+34
| | | | | | | | | | | | | | | | The option makes it possible to offload all HTTP Upload processing to a separate HTTP server. Both ejabberd and the HTTP server should share this secret and behave exactly as described at at https://modules.prosody.im/mod_http_upload_external.html in the 'Implementation' section. Example configuration: modules: ... mod_http_upload: ... put_url: "http://separate.http.server/upload" external_secret: "foo bar baz" ...
* Improve URLs validationEvgeniy Khramtsov2018-06-291-9/+5
|
* HTTP Upload: increase gen_server call timeoutEvgeniy Khramtsov2018-06-291-3/+4
|
* HTTP Upload: put more info in log messagesEvgeniy Khramtsov2018-06-291-8/+8
|