aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_upload.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-05-06Return userinfo from misc:uri_parsePaweł Chmielowski1-1/+1
2022-05-05Improve misc:uri_parsePaweł Chmielowski1-1/+1
2022-02-11Update copyright year to 2022Badlop1-1/+1
2021-09-14Update documentation to match the implemented options values (#3675)Badlop1-2/+3
2021-08-23Use specific syntax so modules and top-level will be linksBadlop1-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
2021-08-23Improve formatting and add sections linksBadlop1-2/+3
2021-01-27Update newest copyright year to 2021 (#3464)Badlop1-1/+1
2020-09-03Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson1-1/+1
2020-06-01Use old http_uri, crypto and pg2 only with old Erlang/OTP (#3284)Badlop1-3/+3
2020-02-21Make http heades passed in custom_headers override builtin headersPaweł Chmielowski1-3/+3
Previously we just appended them, so sometimes we just had duplicates This fixes issue #3056
2020-01-28Update copyright to 2020 (#3149)Badlop1-1/+1
2020-01-27mod_http_upload: Document correct put_url defaultHolger Weiss1-1/+1
Closes #3152.
2020-01-08Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov1-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).
2019-09-23Correctly handle unicode in log messagesEvgeny Khramtsov1-39/+39
2019-09-20Improve ACME implementationEvgeny Khramtsov1-19/+1
Fixes #2487, fixes #2590, fixes #2638
2019-08-06Implement reload/3 for mod_http_uploadEvgeny Khramtsov1-72/+115
2019-08-04Don't retain module option on gen_mod supervisorEvgeny Khramtsov1-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.
2019-08-02Introduce 'vcard' option for the modules supporting vCardsEvgeny Khramtsov1-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 ... ```
2019-07-12Process unexpected messages uniformlyEvgeny Khramtsov1-3/+3
2019-06-27Avoid using broad map() type wherever possibleEvgeny Khramtsov1-1/+2
2019-06-27Fix type specsEvgeny Khramtsov1-1/+1
2019-06-24Make logging messages more consistentEvgeny Khramtsov1-4/+4
2019-06-22Improve extraction of translated stringsEvgeny Khramtsov1-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")).
2019-06-15Get rid of "well-known" typeEvgeny Khramtsov1-2/+2
2019-06-14Warn about 'service_url' option during config transformationEvgeny Khramtsov1-9/+2
2019-06-14Use new configuration validatorEvgeny Khramtsov1-84/+68
2019-05-27mod_http_upload: Avoid catch-all error handlingHolger Weiss1-2/+0
2019-05-12mod_http_upload: Case-insensitive host comparisonHolger Weiss1-3/+7
Perform a case-insensitive lookup of the host name specified by the HTTP client. Fixes #2827.
2019-04-29Improve code for directory deletionEvgeny Khramtsov1-6/+2
2019-04-14Feed whole image to eimp:identify/1Evgeny Khramtsov1-37/+32
Fixes #2859
2019-02-28mod_http_upload: Log nicer warning on unknown hostHolger Weiss1-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.
2019-01-08Update copyright to 2019 (#2756)Badlop1-1/+1
2018-09-19Switch more log message to warning levelEvgeny Khramtsov1-10/+10
The commit is supposed to improve logging at loglevel 3, which is the recommended level for high loaded ejabberd servers
2018-09-17mod_http_upload: Log error if 'put_url' is reusedHolger Weiss1-2/+9
Log a proper [error] message if a single 'put_url' is used for multiple virtual hosts.
2018-07-18mod_http_upload: Adjust default value of 'put_url'Holger Weiss1-1/+1
Let the default 'put_url' point to the HTTPS listener specified in the new default configuration.
2018-07-18mod_http_upload: Deprecate 'service_url' optionHolger Weiss1-1/+4
Users should migrate to the 'external_secret' interface.
2018-07-17mod_http_upload: Avoid function-like macrosHolger Weiss1-27/+31
2018-07-17Move cancel_timer/1 function into 'misc' moduleHolger Weiss1-12/+1
2018-07-17mod_http_upload: Add "Allow" to OPTIONS responseHolger Weiss1-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) [...]."
2018-07-16mod_http_upload: Avoid timers from timer moduleHolger Weiss1-8/+19
Use erlang:start_timer/3 instead of timer:send_after/2, as the former is more efficient.
2018-07-15mod_http_upload: Don't store "external" slotsHolger Weiss1-7/+7
Don't store requested upload slots if an 'external_secret' is configured.
2018-07-10mod_http_upload_quota: Fix process name lookupHolger Weiss1-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.
2018-07-08Better detection of duplicated routes/hostsEvgeniy Khramtsov1-2/+2
2018-07-07fix HMAC for external_secretChristoph Scholz1-1/+1
2018-07-05Move move randoms module to p1_utils repoEvgeniy Khramtsov1-2/+2
2018-07-04mod_http_upload: Treat file and network errors differentlyEvgeniy Khramtsov1-2/+6
2018-07-02HTTP Upload: introduce new option 'external_secret'Evgeniy Khramtsov1-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" ...
2018-06-29Improve URLs validationEvgeniy Khramtsov1-9/+5
2018-06-29HTTP Upload: increase gen_server call timeoutEvgeniy Khramtsov1-3/+4
2018-06-29HTTP Upload: put more info in log messagesEvgeniy Khramtsov1-8/+8