index redirect now can be overriden by environment variable

This commit is contained in:
2022-05-28 15:07:34 +01:00
parent 4abf26fa02
commit 0c23d45667
2 changed files with 15 additions and 8 deletions

View File

@@ -13,8 +13,8 @@ sus URL shortener
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.
`susmng` will assume the first server in the `secrets` section of the configuration file if the -s
flag is not provided.
## installation
@@ -31,20 +31,22 @@ not provided.
#### server environment variables
- `SECRET` - the secret used for signature verification
- `LISTEN_ADDRESS` - the address the server is listening on (default is `0.0.0.0:80`)
- `SECRET`---the secret used for signature verification
- `LISTEN_ADDRESS`---the address the server is listening on (default is `0.0.0.0:80`)
- `INDEX_GET_REDIRECT`---the URL the user should be redirected to if they try to access `/` on the
server (default is `http://alv.cx`)
### setting up susmng
1. install susmng
1. install `susmng`
make install-susmng
2. create config files
2. create configuration files
susmng init
3. edit config files (`~/.config/susmng/config.json`) to add your secrets
3. edit configuration files (`~/.config/susmng/config.json`) to add your secrets
![](sus.jpg)