format readme code blocks

This commit is contained in:
Akbar Rahman 2022-05-26 16:16:21 +01:00
parent 2da866325c
commit d96524f975
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -7,11 +7,11 @@ simple URL shortener
- creating a new shortlink at https://pls.cx/shortlink - creating a new shortlink at https://pls.cx/shortlink
susmng [-s pls.cx] create -l shortlink -v https://example.com susmng [-s pls.cx] create -l shortlink -v https://example.com
- deleting the shortlink https://pls.cx/shortlink - deleting the shortlink https://pls.cx/shortlink
susmng [-s pls.cx] delete -l shortlink -v confirm susmng [-s pls.cx] delete -l shortlink -v confirm
susmng will assume the first server in the 'secrets' section if the -s flag is susmng will assume the first server in the 'secrets' section if the -s flag is
not provided. not provided.
@ -23,11 +23,11 @@ not provided.
1. generate the secret used to create and delete shortlinks 1. generate the secret used to create and delete shortlinks
echo SECRET=`pwgen -s 64 1` >> .env echo SECRET=`pwgen -s 64 1` >> .env
2. run the services 2. run the services
docker-compose up -d --build docker-compose up -d --build
#### server environment variables #### server environment variables
@ -38,10 +38,10 @@ not provided.
1. install susmng 1. install susmng
make install-susmng make install-susmng
2. create config files 2. create config files
susmng init susmng init
3. edit config files (~/.config/susmng/config.json) to add your secrets 3. edit config files (`~/.config/susmng/config.json`) to add your secrets