tailscale / golink

A private shortlink service for tailnets
BSD 3-Clause "New" or "Revised" License
1.25k stars 79 forks source link

Feature request: support for aliases #101

Closed tlockney closed 11 months ago

tlockney commented 11 months ago

Some of the go-link systems that I've used in the past have supported aliases for a given link. I know it would be possible to just create multiple items using the same link, but ideally if a link gets updated, all the alternate names get updated at once.

willnorris commented 11 months ago

Pick one link to be the primary, and set that up. Say:

go/bugs  =>  https://bugs.example.com

Then set up the aliases to point at the primary:

go/b  =>  /bugs
go/issues  =>  /bugs
go/bugz  =>  /bugs

They all resolve to the bug tracker, but only the main go/bugs link needs to be updated if it ever changes.

willnorris commented 11 months ago

There's other fun things you can do by chaining go links together like this that I wrote about recently: https://willnorris.com/2023/golinks-across-tailnets/

tlockney commented 11 months ago

Oh, perfect. I should have thought to try that. It seems almost TOO obvious in retrospect. Ha!

And, yeah, that post is going to help a lot! I had already looked into the templating and had a few ideas, but this gives me a lot more to work with. Thanks!