sus url shortener
Go to file
2022-05-26 16:03:38 +01:00
.gitignore update documenation, susmng 2022-05-26 15:51:14 +01:00
docker-compose.yml update docker-compose 2022-05-26 15:53:04 +01:00
Dockerfile initial commit 2022-05-26 02:08:50 +01:00
go.mod initial commit 2022-05-26 02:08:50 +01:00
go.sum initial commit 2022-05-26 02:08:50 +01:00
gohookr.sh add gohookr script 2022-05-26 02:16:07 +01:00
main.go newline in indexHandler log and log all commands 2022-05-26 02:13:59 +01:00
Makefile add install script for susmng 2022-05-26 02:33:20 +01:00
readme update readme 2022-05-26 16:03:38 +01:00
susmng.py update documenation, susmng 2022-05-26 15:51:14 +01:00

sus
===

simple 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

1. generate the secret used to create and delete shortlinks

	echo SECRET=`pwgen -s 64 1` >> .env

2. run the services

	docker-compose up -d --build

setting up susmng

1. install susmng

	make install-susmng

2. create config files

	susmng init

3. edit config files (~/.config/susmng/config.json) to add your secrets