- add rc "daemon_flags" - fix failed rc_stop error, reported by abieber@
On 12/10/20, Horia Racoviceanu <ho...@racoviceanu.com> wrote: > Upgraded to v0.9.5 > - update README > > Changes: > > === 0.9.5 Emergency Ejection > > + Fix honk init user creation. > > On 12/9/20, Horia Racoviceanu <ho...@racoviceanu.com> wrote: >> Upgraded to v0.9.4 >> >> Changes: >> >> === 0.9.4 Collegiate Colloquialism >> >> + Add validation to some more user inputs to prevent mistakes. >> >> + Easier to use ping command. >> >> On 11/11/20, Horia Racoviceanu <ho...@racoviceanu.com> wrote: >>> Upgraded to v0.9.3 >>> - add autobonker toy >>> - update README >>> >>> Changes: >>> >>> === 0.9.3 Notacanthous Nutshell >>> >>> ++ backup command. >>> >>> + Relax requirement for multipart/form-data posts in API. >>> >>> + Dedupe blob file data. >>> >>> + Better support for rich text bios. >>> >>> + Follow and unfollow should work a little better. >>> >>> + Option to mention all in replies. >>> >>> + Reduce interference between various text substitution rules. >>> >>> + Fix crash in search with extra space. >>> >>> + Fix pubkey issue with domain only keys. >>> >>> - Custom lingo for those who don't like honking. >>> >>> On 10/16/20, Horia Racoviceanu <ho...@racoviceanu.com> wrote: >>>> Just a simple ping, sorry. >>>> >>>> On 9/1/20, Horia Racoviceanu <ho...@racoviceanu.com> wrote: >>>>> - Add the help section >>>>> - Add rc_stop() for related daemons >>>>> >>>>> On 8/29/20, Horia Racoviceanu <ho...@racoviceanu.com> wrote: >>>>>> Upgrade to v0.9.2 >>>>>> - add toys: gettoken, saytheday, sprayandpray, youvegothonks >>>>>> - remove man pages from doc >>>>>> - add views/chatter.html >>>>>> >>>>>> Changes: >>>>>> >>>>>> === 0.9.2 Malleable Maltote >>>>>> >>>>>> + Fix compilation on mac. >>>>>> >>>>>> === 0.9.1 Late Stage Lusciousness >>>>>> >>>>>> ++ Boing boom tschak chonky chatter. Chat messages with Pleroma. >>>>>> >>>>>> + Custom rgb flag: emoji. >>>>>> >>>>>> + Slightly better ActivityPub compat >>>>>> >>>>>> + ## headings for markdown >>>>>> >>>>>> + Workaround js only twitter for hoot: feature. >>>>>> >>>>>> + Quote unquote reliability improvements. >>>>>> >>>>>> + Much better omit images handling. >>>>>> >>>>>> + Fix update activity. >>>>>> >>>>>> + A few API refinements and additions. >>>>>> >>>>>> === 0.9.0 Monitor vs Merrimack >>>>>> >>>>>> --- Add Reactions. >>>>>> >>>>>> +++ Rename react to badonk. >>>>>> >>>>>> + Quick fix to hide all images. >>>>>> >>>>>> + Allow resending follow requests. >>>>>> >>>>>> + Improved search query parsing. >>>>>> >>>>>> + Tables >>>>>> >>>>>> + Reduce retries talking to dumb servers. >>>>>> >>>>>> + Maybe possible to use @u...@example.com wihtout subdomain. >>>>>> >>>>> >>>> >>> >> >
Index: Makefile =================================================================== RCS file: /cvs/ports/www/honk/Makefile,v retrieving revision 1.12 diff -u -p -r1.12 Makefile --- Makefile 24 Oct 2020 15:37:33 -0000 1.12 +++ Makefile 18 Dec 2020 19:07:36 -0000 @@ -2,7 +2,7 @@ COMMENT = federated status conveyance -DISTNAME = honk-0.9.2 +DISTNAME = honk-0.9.5 CATEGORIES = www HOMEPAGE = https://humungus.tedunangst.com/r/honk @@ -28,7 +28,7 @@ DOCDIR ?= ${PREFIX}/share/doc/honk EXAMPLESDIR = ${PREFIX}/share/examples/honk post-build: -.for toy in gettoken saytheday sprayandpray youvegothonks +.for toy in autobonker gettoken saytheday sprayandpray youvegothonks ${MODGO_CMD} build ${MODGO_FLAGS} -o ${MODGO_WORKSPACE}/bin/${toy} \ ${MODGO_WORKSPACE}/src/${ALL_TARGET}/toys/${toy}.go .endfor Index: distinfo =================================================================== RCS file: /cvs/ports/www/honk/distinfo,v retrieving revision 1.8 diff -u -p -r1.8 distinfo --- distinfo 24 Oct 2020 15:37:33 -0000 1.8 +++ distinfo 18 Dec 2020 19:07:36 -0000 @@ -1,2 +1,2 @@ -SHA256 (honk-0.9.2.tgz) = gznmavRe3GAtQHxfvebmInXsIbNZTm7qf7kRgyhIwMk= -SIZE (honk-0.9.2.tgz) = 509274 +SHA256 (honk-0.9.5.tgz) = wJ+/w0DNG+B4wjNj8bswyy74VuadOHk7YJMKE1kJn28= +SIZE (honk-0.9.5.tgz) = 516584 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/www/honk/pkg/PLIST,v retrieving revision 1.6 diff -u -p -r1.6 PLIST --- pkg/PLIST 24 Oct 2020 15:37:33 -0000 1.6 +++ pkg/PLIST 18 Dec 2020 19:07:36 -0000 @@ -2,6 +2,7 @@ @newgroup _honk:833 @newuser _honk:833:_honk:daemon:Honk User:${VARBASE}/honk:/sbin/nologin @rcscript ${RCDIR}/honk +@bin bin/autobonker @bin bin/gettoken @bin bin/honk @bin bin/saytheday Index: pkg/README =================================================================== RCS file: /cvs/ports/www/honk/pkg/README,v retrieving revision 1.3 diff -u -p -r1.3 README --- pkg/README 24 Oct 2020 15:37:33 -0000 1.3 +++ pkg/README 18 Dec 2020 19:07:36 -0000 @@ -8,22 +8,15 @@ Initial configuration ===================== honk expects to be fronted by a TLS terminating reverse proxy. - -acme-client(1) --------------- - -# acme-client.conf(5) -domain honk.example.com { - domain key "${SYSCONFDIR}/ssl/private/honk.example.com.key" - domain full chain certificate "${SYSCONFDIR}/ssl/honk.example.com.fullchain.pem" - sign with letsencrypt -} +Make sure to pass the Host header for nginx(8) + proxy_set_header Host $http_host; Icon and favicon ---------------- honk# mkdir ${VARBASE}/www/htdocs/honk -honk# ftp -o ${VARBASE}/www/htdocs/honk/icon.png https://honk.tedunangst.com/icon.png +honk# ftp -o ${VARBASE}/www/htdocs/honk/icon.png \ + https://honk.tedunangst.com/icon.png honk# ftp -o ${VARBASE}/www/htdocs/honk/favicon.ico \ https://honk.tedunangst.com/favicon.ico @@ -47,17 +40,31 @@ server "honk.example.com" { honk# rcctl enable httpd honk# rcctl start httpd + +acme-client(1) +-------------- + +# acme-client.conf(5) +domain honk.example.com { + domain key "${SYSCONFDIR}/ssl/private/honk.example.com.key" + domain full chain certificate "${SYSCONFDIR}/ssl/honk.example.com.crt" + sign with letsencrypt +} + honk# acme-client -v honk.example.com +honk# ocspcheck -vNo /etc/ssl/honk.example.com.{ocsp,crt} relayd(8) --------- # relayd.conf(5) +ext_ip="203.0.113.4" +ext_ip2="2001:0db8::4" honk_port="31337" -table <honk> { lo0 } -table <localhost> { lo0 } +table <honk> { 127.0.0.1 ::1 } +table <localhost> { 127.0.0.1 ::1 } -http protocol https { +http protocol "https" { match request header append "X-Forwarded-For" value "$REMOTE_ADDR" match request header append "X-Forwarded-By" \ value "$SERVER_ADDR:$SERVER_PORT" @@ -67,21 +74,20 @@ http protocol https { match request path "/*icon.*" forward to <localhost> tcp { sack, backlog 128 } - tls keypair honk + tls keypair honk.example.com } - -relay https { - listen on egress port https tls - 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 <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 <honk> port $honk_port check tcp } - -honk# cd ${SYSCONFDIR}/ssl -honk# ln -s honk.example.com.fullchain.pem honk.crt -honk# cd ${SYSCONFDIR}/ssl/private -honk# ln -s honk.example.com.key honk.key honk# rcctl enable relayd honk# rcctl start relayd @@ -94,7 +100,7 @@ anchor "relayd/*" honk# pfctl -f ${SYSCONFDIR}/pf.conf -Usage +Setup ===== Please see ${LOCALBASE}/share/doc/honk Index: pkg/honk.rc =================================================================== RCS file: /cvs/ports/www/honk/pkg/honk.rc,v retrieving revision 1.3 diff -u -p -r1.3 honk.rc --- pkg/honk.rc 24 Oct 2020 15:37:33 -0000 1.3 +++ pkg/honk.rc 18 Dec 2020 19:07:36 -0000 @@ -3,6 +3,7 @@ # $OpenBSD: honk.rc,v 1.3 2020/10/24 15:37:33 abieber Exp $ daemon="${TRUEPREFIX}/bin/honk" +daemon_flags="-datadir ${VARBASE}/honk -viewdir ${VARBASE}/honk" daemon_user="_honk" . /etc/rc.d/rc.subr @@ -11,14 +12,12 @@ rc_bg=YES rc_reload=NO rc_start() { - ${rcexec} "cd ${VARBASE}/honk && ${daemon} ${daemon_flags} 2>&1 | + ${rcexec} "${daemon} ${daemon_flags} 2>&1 | logger -p daemon.info -t honk" } rc_stop() { - pkill -T "${daemon_rtable}" -xf "${pexp}" - pkill -T "${daemon_rtable}" -xf "${daemon} -datadir . backend" - pkill -T "${daemon_rtable}" -xf "logger -p daemon.info -t honk" + pkill -T "${daemon_rtable}" -U "${daemon_user}" -x honk } rc_cmd $1