Goshorly is an open-source URL shortener designed for high throughput with minimal latency. In this tutorial, we will show you how to install Goshorly on NixOS Latest using the Gitea repository.
configuration.nix
file:sudo nano /etc/nixos/configuration.nix
services.goshorly = {
enable = true;
listenPort = 8080;
};
nixpkgs.config.packageOverrides = pkgs: {
goshorly = pkgs.golangPackages.go.tools.go.get {
pname = "goshorly";
fetch = {
type = "git";
url = "https://gitea.hackmi.ch/Phil/goshorly";
rev = "v1.0.0";
sha256 = "0000000000000000000000000000000000000000000000000000";
};
};
};
Save and close the file.
Update the system:
sudo nixos-rebuild switch
sudo systemctl start goshorly
sudo systemctl status goshorly
Congratulations! You have successfully installed Goshorly on NixOS Latest. Now you can use this URL shortener to easily create short links for your projects.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!