services: prosody: Add support for http-max-content-size.

* doc/guix.texi (Messaging Services): Update accordingly.
* gnu/services/messaging.scm (prosody-configuration)[http-max-content-size]:
New field.
This commit is contained in:
Clément Lassieur 2017-10-28 01:33:57 +02:00
parent f59de6bea9
commit 1f6f1a07c8
No known key found for this signature in database
GPG Key ID: 89F96D4808F359C7
2 changed files with 12 additions and 3 deletions

View File

@ -14143,6 +14143,10 @@ File to write pid in. See @url{http://prosody.im/doc/modules/mod_posix}.
Defaults to @samp{"/var/run/prosody/prosody.pid"}. Defaults to @samp{"/var/run/prosody/prosody.pid"}.
@end deftypevr @end deftypevr
@deftypevr {@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size
Maximum allowed size of the HTTP body (in bytes).
@end deftypevr
@deftypevr {@code{prosody-configuration} parameter} maybe-string http-external-url @deftypevr {@code{prosody-configuration} parameter} maybe-string http-external-url
Some modules expose their own URL in various ways. This URL is built Some modules expose their own URL in various ways. This URL is built
from the protocol, host and port used. If Prosody sits behind a proxy, the from the protocol, host and port used. If Prosody sits behind a proxy, the
@ -14166,7 +14170,7 @@ See @url{http://prosody.im/doc/configure#virtual_host_settings}.
Available @code{virtualhost-configuration} fields are: Available @code{virtualhost-configuration} fields are:
all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-external-url}, plus: all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-max-content-size}, @code{http-external-url}, plus:
@deftypevr {@code{virtualhost-configuration} parameter} string domain @deftypevr {@code{virtualhost-configuration} parameter} string domain
Domain you wish Prosody to serve. Domain you wish Prosody to serve.
@end deftypevr @end deftypevr
@ -14188,7 +14192,7 @@ Defaults to @samp{()}.
Available @code{int-component-configuration} fields are: Available @code{int-component-configuration} fields are:
all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-external-url}, plus: all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-max-content-size}, @code{http-external-url}, plus:
@deftypevr {@code{int-component-configuration} parameter} string hostname @deftypevr {@code{int-component-configuration} parameter} string hostname
Hostname of the component. Hostname of the component.
@end deftypevr @end deftypevr
@ -14241,7 +14245,7 @@ Defaults to @samp{()}.
Available @code{ext-component-configuration} fields are: Available @code{ext-component-configuration} fields are:
all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-external-url}, plus: all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-max-content-size}, @code{http-external-url}, plus:
@deftypevr {@code{ext-component-configuration} parameter} string component-secret @deftypevr {@code{ext-component-configuration} parameter} string component-secret
Password which the component will use to log in. Password which the component will use to log in.
@end deftypevr @end deftypevr

View File

@ -436,6 +436,11 @@ by the GuixSD Prosody Service. See @url{http://prosody.im/doc/logging}."
"File to write pid in. See @url{http://prosody.im/doc/modules/mod_posix}." "File to write pid in. See @url{http://prosody.im/doc/modules/mod_posix}."
global) global)
(http-max-content-size
(maybe-non-negative-integer 'disabled)
"Maximum allowed size of the HTTP body (in bytes)."
common)
(http-external-url (http-external-url
(maybe-string 'disabled) (maybe-string 'disabled)
"Some modules expose their own URL in various ways. This URL is built "Some modules expose their own URL in various ways. This URL is built