Commit graph

3 commits

Author SHA1 Message Date
stuebinm e07d23e2ee
shortcutdomains: more shortcuts
tbh, I'm not entirely sure about these — if we have single-letter
domains only, we'll run into trouble pretty quickly (e.g. with
mattermost/mumble). I've kept it limited to only *.infra4future.de,
where that is less of a problem (for now).
2021-10-07 17:50:54 +02:00
stuebinm 03ce987c90
shortcutdomains: 301 redirect -> 302 redirect
To prevent interference from indefinite caching of 301 redirects, this
now uses 302 redirects instead.
2021-10-07 17:50:54 +02:00
stuebinm 98c3c807c4
shortcut domains for services
as per Zauberberg's idea in mattermost last night [1], this adds an
extra domain, which just exists to make links to the various services
shorter, using a nix to keep the whole thing easily changable.

In particular, the "shortdomain" binding should be set to some domain we
actually own before anyone deploys this (I've set it to "i4f.de" as a
dummy value for now).

Potential caveats:
 - this uses ACME to get a certificate for each of the redirect domains,
   which may run into rate limits if we have too many of them.
 - there's nothing on the shortdomain itself. I suggest we could either
   use it as a general linkshortener, or generate a list of available
   domain shortcuts into html from nix

[1] https://mattermost.infra4future.de/hacc/pl/xks5naezcbn8myh79bq3dehmso
2021-10-07 17:50:50 +02:00