diff --git a/Deployment.md b/Deployment.md new file mode 100644 index 0000000..567d899 --- /dev/null +++ b/Deployment.md @@ -0,0 +1,41 @@ +This page documents how to deploy ssh-chat using various methods + +## OpenRC +/etc/init.d/openrc: + + #!/sbin/openrc-run + + name="$RC_SVCNAME" + description="Chat server over SSH" + command="/usr/local/bin/ssh-chat" + command_args="-i '$server_ident' --bind='$port' --admin='$admin_fingerprint' --whitelist='$whitelist' --motd='$motdfile' --log=$logfile" + pidfile="/run/$RC_SVCNAME.pid" + command_background="yes" + command_user="nobody" # If you want to secure your keyfile, you should change this to a + # user specifically for running ssh-chat + +/etc/conf.d/openrc: + + # Config for /etc/init.d/ssh-chat + # See `/usr/bin/ssh-chat --help` for more details + + # The admin's key fingerprint + #admin_fingerprint=SHA256:[INSERT HERE] + + # The server's private key + server_ident=[INSERT HERE] + + # The port to bind to + # port=22 + + # The whitelist file + # whitelist="" + + # The MOTD (Message Of The Day) file + # motd="" + + # The logfile location + log="/var/log/ssh-chat.log" + + +