all repos — honk @ b6fe1dc53a0e825cef67af8a022f3a814e928186

my fork of honk

docs/honk.8 (view raw)

  1.\"
  2.\" Copyright (c) 2019 Ted Unangst
  3.\"
  4.\" Permission to use, copy, modify, and distribute this software for any
  5.\" purpose with or without fee is hereby granted, provided that the above
  6.\" copyright notice and this permission notice appear in all copies.
  7.\"
  8.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 10.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 11.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 12.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 15.\"
 16.Dd $Mdocdate$
 17.Dt HONK 8
 18.Os
 19.Sh NAME
 20.Nm honk
 21.Nd honk administration
 22.Sh DESCRIPTION
 23The
 24.Nm
 25daemon processes messages from other federated servers.
 26This is the admin manual.
 27For user operation, see
 28.Xr honk 1 .
 29.Ss SETUP
 30.Pp
 31Set up a TLS reverse proxy.
 32.Nm
 33can listen on TCP or unix sockets, but will not terminate TLS.
 34https is a required component for federation.
 35.Pp
 36Make sure to pass the Host header, if necessary (as for nginx).
 37.Bd -literal -offset indent
 38proxy_set_header Host $http_host;
 39.Ed
 40.Ss BUILD
 41Building
 42.Nm
 43requires a go compiler and libsqlite.
 44On
 45.Ox
 46this is the go and sqlite3 packages.
 47Other platforms may require additional development libraries or headers
 48to be installed.
 49Run make.
 50Please be patient.
 51Even on fast machines, building from source can take several seconds.
 52.Ss INIT
 53Run the
 54.Ic init
 55command.
 56.Dl ./honk init
 57This will create the database and ask four questions, as well as creating
 58the initial user.
 59.Bd -literal -offset indent
 60username: (desired username)
 61password: (desired password)
 62listenaddr: (tcp or unix: localhost:31337, /var/www/honk.sock, etc.)
 63servername: (public DNS name: honk.example.com)
 64.Ed
 65.Ss OPERATION
 66Run honk.
 67.Dl date; ./honk >> log 2>&1
 68Log messages are sent to stderr and should probably be redirected to a file.
 69.Ss CUSTOMIZATION
 70Add custom memes (stickers) to the
 71.Pa memes
 72directory.
 73Image and video files are supported.
 74.Pp
 75Add custom emus (emoji) to the
 76.Pa emus
 77directory.
 78Image files are supported.
 79.Pp
 80Site CSS may be overridden by creating a
 81.Pa views/local.css
 82file.
 83A restart is required after changes.
 84.Pp
 85Custom HTML messages may be added to select pages by using the
 86.Ic admin
 87command.
 88A restart is required after changes.
 89.Dl ./honk admin
 90.Bl -tag -width tenletters
 91.It server
 92Displayed on the home page.
 93.It about
 94Displayed on the about page.
 95.It login
 96Displayed about the login form.
 97.El
 98.Pp
 99.Ss USER ADMIN
100New users can be added with the
101.Ic adduser
102command.
103This is discouraged.
104.Dl ./honk adduser
105.Pp
106Passwords may be reset with the
107.Ic chpass
108command.
109.Dl ./honk chpass username
110.Ss MAINTENANCE
111The database may grow large over time.
112The
113.Ic cleanup
114command exists to purge old data, by default 30 days.
115.Ss UPGRADE
116Stop the old honk process.
117.Dl pkill honk
118Backup the database.
119.Dl cp honk.db backup.db
120Perform the upgrade with the
121.Ic upgrade
122command.
123.Dl ./honk upgrade
124Restart.
125.Dl ./honk
126.Pp
127There's also a
128.Pa blob.db
129file which is important to backup and restore.
130.Sh SECURITY
131.Nm
132is not currently hardened against SSRF, server side request forgery.
133Be mindful of what other services may be exposed via localhost or the
134local network.
135.Sh DEBUG
136Debug mode may be enabled or disabled by running
137.Ic debug Ar on|off .
138In debug mode, secure cookies are disabled and templates are reloaded
139every request.
140.Sh ENVIRONMENT
141Image processing and scaling requires considerable memory.
142It is recommended to adjust the datasize ulimit to at least 1GB.
143.Sh SEE ALSO
144.Xr intro 1 ,
145.Xr honk 1
146.Sh CAVEATS
147There's no online upgrade capability.
148Upgrades may result in minutes of downtime.