Index: Makefile
===================================================================
RCS file: /cvs/ports/www/honk/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- Makefile 11 Mar 2022 20:09:55 -0000 1.19
+++ Makefile 1 Jun 2022 21:23:43 -0000
@@ -1,6 +1,6 @@
COMMENT = federated status conveyance
-DISTNAME = honk-0.9.7
+DISTNAME = honk-0.9.8
CATEGORIES = www
HOMEPAGE = https://humungus.tedunangst.com/r/honk
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/honk/distinfo,v
retrieving revision 1.11
diff -u -p -r1.11 distinfo
--- distinfo 2 Mar 2022 07:31:01 -0000 1.11
+++ distinfo 1 Jun 2022 21:23:43 -0000
@@ -1,2 +1,2 @@
-SHA256 (honk-0.9.7.tgz) = t6EM5E98qvlnq6Y6vd21MvPBrWpkmo4qXdgNEUAeF7M=
-SIZE (honk-0.9.7.tgz) = 522993
+SHA256 (honk-0.9.8.tgz) = BmZgMvN7fFrft+W0+V2j3tezI5kRLl/7Fx5wIVXwCG4=
+SIZE (honk-0.9.8.tgz) = 511957
Index: pkg/MESSAGE
===================================================================
RCS file: pkg/MESSAGE
diff -N pkg/MESSAGE
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/MESSAGE 1 Jun 2022 21:23:43 -0000
@@ -0,0 +1,15 @@
+The database has changed since version 0.9.7
+
+Stop the old honk process.
+honk# rcctl stop honk
+
+Backup the database.
+honk# doas -su _honk
+honk$ umask 077; cd ${VARBASE}/honk && honk backup `date +backup-%F`
+
+Perform the upgrade with the upgrade command.
+honk$ honk upgrade
+honk$ exit
+
+Restart.
+honk# rcctl start honk
Index: pkg/README
===================================================================
RCS file: /cvs/ports/www/honk/pkg/README,v
retrieving revision 1.5
diff -u -p -r1.5 README
--- pkg/README 11 Mar 2022 20:09:55 -0000 1.5
+++ pkg/README 1 Jun 2022 21:23:43 -0000
@@ -12,10 +12,9 @@ Make sure to pass the Host header for ng
Icon and favicon
----------------
-honk# mkdir ${VARBASE}/www/htdocs/honk
-honk# ftp -o ${VARBASE}/www/htdocs/honk/icon.png \
+honk# ftp -o ${VARBASE}/honk/views/icon.png \
https://honk.tedunangst.com/icon.png
-honk# ftp -o ${VARBASE}/www/htdocs/honk/favicon.ico \
+honk# ftp -o ${VARBASE}/honk/views/favicon.ico \
https://honk.tedunangst.com/favicon.ico
httpd(8)
@@ -28,9 +27,6 @@ server "honk.example.com" {
root "/acme"
request strip 2
}
- location "/*icon.*" {
- root "/htdocs/honk"
- }
location "*" {
block return 302 "https://$HTTP_HOST$REQUEST_URI"
}
@@ -50,7 +46,7 @@ domain honk.example.com {
}
honk# acme-client -v honk.example.com
-honk# ocspcheck -vNo /etc/ssl/honk.example.com.{ocsp,crt}
+honk# ocspcheck -vNo ${SYSCONFDIR}/ssl/honk.example.com.{ocsp,crt}
relayd(8)
---------
@@ -60,7 +56,7 @@ ext_ip="203.0.113.4"
ext_ip2="2001:0db8::4"
honk_port="31337"
table <honk> { 127.0.0.1 ::1 }
-table <localhost> { 127.0.0.1 ::1 }
+table <httpd> { 127.0.0.1 ::1 }
http protocol "https" {
match request header append "X-Forwarded-For" value "$REMOTE_ADDR"
@@ -69,7 +65,7 @@ http protocol "https" {
match request header set "Connection" value "close"
match request header "Host" value "honk.*" forward to <honk>
- match request path "/*icon.*" forward to <localhost>
+ match request path "/.well-known/acme-challenge/*" forward to <httpd>
tcp { sack, backlog 128 }
tls keypair honk.example.com
@@ -77,13 +73,13 @@ http protocol "https" {
relay "https" {
listen on $ext_ip port https tls
protocol "https"
- forward to <localhost> port http check http "/icon.png" code 200
+ forward to <httpd> port http check tcp
forward to <honk> port $honk_port check tcp
}
relay "https2" {
listen on $ext_ip2 port https tls
protocol "https"
- forward to <localhost> port http check http "/icon.png" code 200
+ forward to <httpd> port http check tcp
forward to <honk> port $honk_port check tcp
}
@@ -103,6 +99,9 @@ Setup
Please see ${LOCALBASE}/share/doc/honk
+honk(8)
+-------
+
honk# doas -su _honk
honk$ umask 077; cd ${VARBASE}/honk && honk init
listenaddr: localhost:31337
@@ -114,3 +113,41 @@ honk# rcctl enable honk
honk# rcctl start honk
Honk at https://honk.example.com
+
+Customization
+=============
+
+Site CSS may be overridden by creating a views/local.css file in the
+${VARBASE}/honk directory. Site JS may similarly be included by creating
+views/local.js. A restart is required after changes.
+
+e.g. add this snippet to open all links in honks in new tabs.
+
+function adjusttargets() {
+ var els = document.querySelectorAll("p.content a")
+ for (var i = 0; i < els.length; i++) {
+ var e = els[i]
+ e.target = "_blank"
+ }
+}
+document.addEventListener('DOMContentLoaded', adjusttargets, false);
+
+Maintenance
+===========
+
+The cleanup [days] command exists to purge old external data, by default 30
+days. This removes unreferenced, unsaved posts and attachments. It does not
+remove any original content.
+
+honk# crontab -eu _honk
+
+# crontab(5)
+MAILTO=root
+@daily ${LOCALBASE}/bin/honk cleanup
+
+A cron(8) job to renew the honk certificate.
+
+honk# crontab -eu root
+
+# crontab(5)
+~ * * * * acme-client honk.example.com; ocspcheck -No ${SYSCONFDIR}/ssl/honk.example.com.{ocsp,crt}; rcctl restart relayd
Upgrade to v0.9.8
- Add MESSAGE
- Update README
changelog
=== 0.9.8 Tentative Tentacle
+ Switch database to WAL mode.
- go version 1.16 required.
+ Specify banner: image in profile.
+ Update activity compatibility with mastodon.
- Signed fetch.
+ Better unicode hashtags.
+ Some more configuration options.
+ Some UI improvements to web interface.
+ Add atme class to mentions
+ Improvements to the mastodon importer.
+ More hydration capable pages.
+ Support for local.js.
+ Better error messages for timeouts.
+ Some improved html and markdown.
No comments:
Post a Comment