- Add
127.0.0.1 goto the hosts file.- Usually located in
C:\Windows\System32\drivers\etc\hostson Windows, and/etc/hostson the others.
- Usually located in
- Create JSON files in a directory.
- e.g.
{ "/example": "https://example.com" }will redirecthttp://go/exampletohttps://example.com - The keys must start with
/. - Multiple JSON files will be merged.
- e.g.
- Run
docker run -v <dir>:/golinks/routes -p 80:80 ghcr.io/foo-x/golinks.<dir>is the directory you created in the step above.
- Access to
http://go/<path>.
Foo-x/golinks
Private shortlinks