Updated README.md

This commit is contained in:
Rajnish Mishra 2021-05-15 16:25:45 +05:30
parent 24b53d0a96
commit 2f36ab7f3d
1 changed files with 5 additions and 3 deletions

View File

@ -4,16 +4,18 @@
Chat app to talk in group or to strangers
## Running
Export SALT as environment variable to use as salt for hashing, and TENOR_API_KEY for gifs support in the server.
Create a `config.json` file for configuring the server with all the required options like `salt` and `tenor_api` etc.
An example config file `config.json.example` has been provided with all currently supported options, one can copy the example file as `config.json`
and put appropriate values for the given options to get the config file ready for use.
```
SALT="<salt>" TENOR_API_KEY="API-KEY" lupt --bind_address <interface address>:<port> --static_path <static files dir>
lupt -a <interface address> -p <port> -s <static files dir> -c <config.json path>
```
Example:
```
SALT="sometext" TENOR_API_KEY="API-KEY" lupt --bind_address 0.0.0.0:8080 --static_path ./static
lupt -a 0.0.0.0 -p 8080 -s ./static -c config.json
```
## Building