rip
(or 'reverse intermediary proxy') is a reverse proxy that sits between the
Internet and the official Discuit web-server at
discuit.org.
Discuit used to be at discuit.net
but was migrated to discuit.org
, because
the .org
top-level-domain was thought to be more fitting for a non-profit
website. Ordinarily, such a migration would be exceedingly simple, involving
only a simple HTTP 301 redirect. But since Discuit is a progressive web app
(PWA) which had been installed on many user devices, this was tricky. The simple
solution would've completely broken all the existing PWAs (and also have
required all users to log back in on the new domain).
The solution to this problem is to keep serving the old website, at
discuit.net
, for the existing PWA users (and also for all logged in users,
regardless), and only redirect new users who're coming to discuit.net
to
discuit.org
. This is what rip
does.
rip
uses zero dependencies outside of the Go standard library.