Added an invites page and web registration form
This commit is contained in:
parent
83ddf35649
commit
88309b1a44
2 changed files with 19 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
telepath.im www.telepath.im {
|
telepath.im www.telepath.im {
|
||||||
# Website
|
# Website
|
||||||
root * /srv/http/telepath
|
root * /var/www/html/telepath
|
||||||
file_server
|
file_server
|
||||||
|
|
||||||
# XMPP host-meta
|
# XMPP host-meta
|
||||||
|
@ -19,6 +19,10 @@ telepath.im www.telepath.im {
|
||||||
respond /.well-known/host-meta.json 200 {
|
respond /.well-known/host-meta.json 200 {
|
||||||
body `{"links":[{"rel":"urn:xmpp:alt-connections:xbosh","href":"https://hypertext.telepath.im/http-bind"},{"rel":"urn:xmpp:alt-connections:websocket/","href":"wss://hypertext.telepath.im/xmpp-websocket/"}]}`
|
body `{"links":[{"rel":"urn:xmpp:alt-connections:xbosh","href":"https://hypertext.telepath.im/http-bind"},{"rel":"urn:xmpp:alt-connections:websocket/","href":"wss://hypertext.telepath.im/xmpp-websocket/"}]}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reverse_proxy /invite* localhost:5280
|
||||||
|
reverse_proxy /register* localhost:5280
|
||||||
|
reverse_proxy /share* localhost:5280
|
||||||
}
|
}
|
||||||
|
|
||||||
# XMPP HTTP file upload service
|
# XMPP HTTP file upload service
|
||||||
|
|
|
@ -76,7 +76,10 @@ modules_enabled = {
|
||||||
"http_altconnect";
|
"http_altconnect";
|
||||||
"lastactivity";
|
"lastactivity";
|
||||||
"privilege";
|
"privilege";
|
||||||
"block_registrations"
|
"block_registrations";
|
||||||
|
"invites_register_web";
|
||||||
|
"invites_page";
|
||||||
|
"http_libjs"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- These modules are auto-loaded, but should you want
|
-- These modules are auto-loaded, but should you want
|
||||||
|
@ -235,6 +238,16 @@ expose_publisher = true
|
||||||
|
|
||||||
VirtualHost "telepath.im"
|
VirtualHost "telepath.im"
|
||||||
|
|
||||||
|
-- Invites
|
||||||
|
-- See https://modules.prosody.im/mod_invites.html
|
||||||
|
|
||||||
|
invites_page = "https://telepath.im/invite?{invite.token}"
|
||||||
|
http_external_url = "https://telepath.im/"
|
||||||
|
http_paths = {
|
||||||
|
invites_page = "/invite";
|
||||||
|
invites_register_web = "/register";
|
||||||
|
}
|
||||||
|
|
||||||
------ Components ------
|
------ Components ------
|
||||||
-- See https://prosody.im/doc/components
|
-- See https://prosody.im/doc/components
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue