summary refs log tree commit diff
path: root/gnu/services/messaging.scm
diff options
context:
space:
mode:
authorClément Lassieur <clement@lassieur.org>2017-10-27 00:20:01 +0200
committerClément Lassieur <clement@lassieur.org>2017-11-26 15:30:56 +0100
commitf59de6bea9a2fc83df492eafbfb7f8bfc5148939 (patch)
treea81f36ead8f11c09d82333b8091c770b5bcdc059 /gnu/services/messaging.scm
parent5cc6dcd734fbf40371aaa6b2ebb825fb35397209 (diff)
downloadguix-f59de6bea9a2fc83df492eafbfb7f8bfc5148939.tar.gz
services: prosody: Add support for http-external-url.
* doc/guix.texi (Messaging Services): Update accordingly.
* gnu/services/messaging.scm (prosody-configuration)[http-external-url]: New
field.
Diffstat (limited to 'gnu/services/messaging.scm')
-rw-r--r--gnu/services/messaging.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/services/messaging.scm b/gnu/services/messaging.scm
index 526ad5a410..5a7b19605b 100644
--- a/gnu/services/messaging.scm
+++ b/gnu/services/messaging.scm
@@ -436,6 +436,14 @@ 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}."
      global)
 
+    (http-external-url
+     (maybe-string 'disabled)
+     "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
+public URL will be @code{http-external-url} instead.  See
+@url{https://prosody.im/doc/http#external_url}."
+     common)
+
     (virtualhosts
      (virtualhost-configuration-list
       (list (virtualhost-configuration