4d40900ef58af621c201ade6efea8ac892172af6
sus
sus URL shortener
usage
-
creating a new shortlink at https://pls.cx/shortlink
susmng [-s pls.cx] create -l shortlink -v https://example.com -
deleting the shortlink https://pls.cx/shortlink
susmng [-s pls.cx] delete -l shortlink -v confirm
susmng will assume the first server in the 'secrets' section if the -s flag is not provided.
installation
running the server
-
generate the secret used to create and delete shortlinks
echo SECRET=`pwgen -s 64 1` >> .env -
run the services
docker-compose up -d --build
server environment variables
SECRET- the secret used for signature verificationLISTEN_ADDRESS- the address the server is listening on (default is0.0.0.0:80)
setting up susmng
-
install susmng
make install-susmng -
create config files
susmng init -
edit config files (
~/.config/susmng/config.json) to add your secrets
Languages
Go
63.5%
Python
33%
Dockerfile
1.3%
Makefile
1.2%
Shell
1%