Skip to content

Commit

Permalink
Updating docs to specify location of cert/key files for REST
Browse files Browse the repository at this point in the history
  • Loading branch information
ddutt committed Jan 11, 2021
1 parent b065534 commit ccff315
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/rest-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,19 @@ If you want it to be more random, this is a good way of creating a key:
openssl rand -hex 20
```

### Changing the Location And Name of the Key/Cert Files

The default location for the key and certificate files needed for REST is ~/.suzieq, and the file names are key,pem and cert.pem. If you wish these to be different, you can specify the full path of each of the files (or any one) via the ```rest_keyfile``` and ```rest)_certfile``` variables in the suzieq config file, typically at ~/.suzieq/suzieq-cfg.yml. Here is an example of a config file with these two parameters defined:
```
data-directory: /suzieq/parquet
service-directory: /suzieq/config
schema-directory: /suzieq/config/schema
temp-directory: /tmp/
# kafka-servers: localhost:9093
logging-level: WARNING
period: 15
API_KEY: 496157e6e869ef7f3d6ecb24a6f6d847b224ee4f
rest_certfile: /suzieq/cert.pem
rest_keyfile: /suzieq/cert.pem
```

0 comments on commit ccff315

Please sign in to comment.