Mercurial > prosody-hg
comparison plugins/mod_admin_telnet.lua @ 10789:e7eb33a5f8d9
mod_admin_telnet: Document HTTP command in internal help
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 29 Apr 2020 22:56:35 +0200 |
| parents | 3fc4863227a9 |
| children | ee2f8ee319ea |
comparison
equal
deleted
inserted
replaced
| 10788:3fc4863227a9 | 10789:e7eb33a5f8d9 |
|---|---|
| 242 print [[Commands are divided into multiple sections. For help on a particular section, ]] | 242 print [[Commands are divided into multiple sections. For help on a particular section, ]] |
| 243 print [[type: help SECTION (for example, 'help c2s'). Sections are: ]] | 243 print [[type: help SECTION (for example, 'help c2s'). Sections are: ]] |
| 244 print [[]] | 244 print [[]] |
| 245 print [[c2s - Commands to manage local client-to-server sessions]] | 245 print [[c2s - Commands to manage local client-to-server sessions]] |
| 246 print [[s2s - Commands to manage sessions between this server and others]] | 246 print [[s2s - Commands to manage sessions between this server and others]] |
| 247 print [[http - Commands to inspect HTTP services]] -- XXX plural but there is only one so far | |
| 247 print [[module - Commands to load/reload/unload modules/plugins]] | 248 print [[module - Commands to load/reload/unload modules/plugins]] |
| 248 print [[host - Commands to activate, deactivate and list virtual hosts]] | 249 print [[host - Commands to activate, deactivate and list virtual hosts]] |
| 249 print [[user - Commands to create and delete users, and change their passwords]] | 250 print [[user - Commands to create and delete users, and change their passwords]] |
| 250 print [[server - Uptime, version, shutting down, etc.]] | 251 print [[server - Uptime, version, shutting down, etc.]] |
| 251 print [[port - Commands to manage ports the server is listening on]] | 252 print [[port - Commands to manage ports the server is listening on]] |
| 265 elseif section == "s2s" then | 266 elseif section == "s2s" then |
| 266 print [[s2s:show(domain) - Show all s2s connections for the given domain (or all if no domain given)]] | 267 print [[s2s:show(domain) - Show all s2s connections for the given domain (or all if no domain given)]] |
| 267 print [[s2s:show_tls(domain) - Show TLS cipher info for encrypted sessions]] | 268 print [[s2s:show_tls(domain) - Show TLS cipher info for encrypted sessions]] |
| 268 print [[s2s:close(from, to) - Close a connection from one domain to another]] | 269 print [[s2s:close(from, to) - Close a connection from one domain to another]] |
| 269 print [[s2s:closeall(host) - Close all the incoming/outgoing s2s sessions to specified host]] | 270 print [[s2s:closeall(host) - Close all the incoming/outgoing s2s sessions to specified host]] |
| 271 elseif section == "http" then | |
| 272 print [[http:list(hosts) - Show HTTP endpoints]] | |
| 270 elseif section == "module" then | 273 elseif section == "module" then |
| 271 print [[module:load(module, host) - Load the specified module on the specified host (or all hosts if none given)]] | 274 print [[module:load(module, host) - Load the specified module on the specified host (or all hosts if none given)]] |
| 272 print [[module:reload(module, host) - The same, but unloads and loads the module (saving state if the module supports it)]] | 275 print [[module:reload(module, host) - The same, but unloads and loads the module (saving state if the module supports it)]] |
| 273 print [[module:unload(module, host) - The same, but just unloads the module from memory]] | 276 print [[module:unload(module, host) - The same, but just unloads the module from memory]] |
| 274 print [[module:list(host) - List the modules loaded on the specified host]] | 277 print [[module:list(host) - List the modules loaded on the specified host]] |
