diff options
Diffstat (limited to 'README.1')
| -rw-r--r-- | README.1 | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/README.1 b/README.1 new file mode 100644 index 0000000..53ffeb6 --- /dev/null +++ b/README.1 | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | .\" Manpage for whiterabbit | ||
| 2 | .TH WHITERABBIT 1 "2025-10-02" "1.1.0" "whiterabbit manual" | ||
| 3 | .SH NAME | ||
| 4 | whiterabbit \- auto-configure Matrix homeservers (Dendrite, Synapse, or Tuwunel) | ||
| 5 | .SH SYNOPSIS | ||
| 6 | .B whiterabbit | ||
| 7 | [\fIturn <domain> <ip> <device> <secret>\fR| | ||
| 8 | \fIdendrite <domain> <email> <server_ip>\fR| | ||
| 9 | \fIsynapse <domain> <email> <server_ip>\fR| | ||
| 10 | \fItuwunel <domain> <email> <server_ip>\fR| | ||
| 11 | \fIlist\fR| | ||
| 12 | \fIremove <domain>...\fR] | ||
| 13 | .SH DESCRIPTION | ||
| 14 | whiterabbit sets up Matrix homeservers (Dendrite, Synapse, or Tuwunel) with a global Coturn server and Nginx/Let's Encrypt proxying. | ||
| 15 | |||
| 16 | Main subcommands: | ||
| 17 | .TP | ||
| 18 | .B turn <domain> <ip> <device> <secret> | ||
| 19 | Install or configure the global Coturn server. | ||
| 20 | .TP | ||
| 21 | .B dendrite <domain> <email> <server_ip> | ||
| 22 | Add a new Matrix Dendrite server with automatic TLS and Nginx reverse proxy. | ||
| 23 | .TP | ||
| 24 | .B synapse <domain> <email> <server_ip> | ||
| 25 | Add a new Matrix Synapse server with automatic TLS and Nginx reverse proxy. | ||
| 26 | .TP | ||
| 27 | .B tuwunel <domain> <email> <server_ip> | ||
| 28 | Add a Tuwunel homeserver with automatic TLS and Nginx reverse proxy. | ||
| 29 | .TP | ||
| 30 | .B list | ||
| 31 | List all configured Matrix servers and their container status. | ||
| 32 | .TP | ||
| 33 | .B remove <domain> [domain2 ...] | ||
| 34 | Remove one or more Matrix servers by domain name. | ||
| 35 | |||
| 36 | .SH EXAMPLES | ||
| 37 | .TP | ||
| 38 | whiterabbit turn turn.example.com 192.168.1.10 eth0 myturnsecret | ||
| 39 | Set up the global Coturn server bound to eth0 on IP 192.168.1.10. | ||
| 40 | .TP | ||
| 41 | whiterabbit dendrite matrix.example.com admin@example.com 192.168.1.20 | ||
| 42 | Add a Dendrite server. | ||
| 43 | .TP | ||
| 44 | whiterabbit synapse matrix.example.com admin@example.com 192.168.1.21 | ||
| 45 | Add a Synapse server. | ||
| 46 | .TP | ||
| 47 | whiterabbit tuwunel tuw.example.com admin@example.com 192.168.1.22 | ||
| 48 | Add a Tuwunel server. | ||
| 49 | .TP | ||
| 50 | whiterabbit list | ||
| 51 | Show all installed servers and their status. | ||
| 52 | .TP | ||
| 53 | whiterabbit remove matrix.example.com another.example.org | ||
| 54 | Remove one or more servers. | ||
| 55 | |||
| 56 | .SH NOTES | ||
| 57 | All Matrix homeservers share the same Coturn instance. | ||
| 58 | TLS certificates are issued automatically via Let's Encrypt. | ||
| 59 | Requires docker, docker-compose, nginx, certbot, and coturn. | ||
| 60 | |||
| 61 | .SH COMMAND DISPATCH | ||
| 62 | The script internally dispatches commands as follows: | ||
| 63 | .nf | ||
| 64 | CMD="${1:-}" | ||
| 65 | case "$CMD" in | ||
| 66 | turn) shift; install_turn "$@" ;; | ||
| 67 | dendrite) shift; install_dendrite "$@" ;; | ||
| 68 | # synapse) shift; install_synapse "$@" ;; | ||
| 69 | tuwunel) shift; install_tuwunel "$@" ;; | ||
| 70 | list) list_servers ;; | ||
| 71 | remove) shift; remove_server "$@" ;; | ||
| 72 | *) usage ;; | ||
| 73 | esac | ||
| 74 | .fi | ||
