Document hosting_signup config option in source

pull/21833/head
Jason Robinson 2020-11-27 15:04:40 +02:00
parent 835e417333
commit ad49dedec3
1 changed files with 16 additions and 0 deletions

View File

@ -296,6 +296,22 @@ export default class UserMenu extends React.Component<IProps, IState> {
) )
} else if (signupLink || hostingSignupOptions) { } else if (signupLink || hostingSignupOptions) {
let hostingSignupIFrame; let hostingSignupIFrame;
/*
Config schema:
```
"hosting_signup": {
// URL to load iframe from.
"url": "https://prodiver.tld/setup",
// Accepted Matrix user server names to show iframe action for.
// Subdomains will also match.
"domains": [
"matrix.org",
"domain.tld"
]
}
```
*/
if (hostingSignupOptions && hostingSignupOptions.url) { if (hostingSignupOptions && hostingSignupOptions.url) {
// If hosting_signup_domains is set to a non-empty array, only show // If hosting_signup_domains is set to a non-empty array, only show
// dialog if the user is on the domain or a subdomain. // dialog if the user is on the domain or a subdomain.