Skip to content

Commit 65a8875

Browse files
Merge pull request #3 from oslabs-beta/CHRONOS-30
Chronos 30- .env.example
2 parents 8b4cb13 + 567e5fd commit 65a8875

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

examples/docker/.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# **NOTE**: Ensure that there are no quotes surrounding any of the keys and values.
2+
3+
CHRONOS_DB="MongoDB or PostgreSQL"
4+
CHRONOS_URI="The URI to the desired MongoDB or PostgreSQL database to save health metrics via Chronos"
5+
CHRONOS_GRAFANA_API_KEY=Bearer "[the access token you created in above section (Grafana API Key)]"
6+
7+
MONGO_URI_AUTH="A MongoDB URI for the auth server microservice to use"
8+
MONGO_URI_ITEMS="A MongoDB URI for the items server microservice to use"
9+
MONGO_URI_INVENTORY="A MongoDB URI for the inventory server microservice to use"
10+
MONGO_URI_ORDERS="A MongoDB URI for the orders server microservice to use"
11+
12+
# A random string used to sign and verify JSON Web Tokens used by the auth service - the random string provided will work
13+
JWT_KEY=16a8dcb7e3445392b8124f82a451fb2c1c42a1ad4d599e43ebaf4cbbad8c7d59
14+
JWT_LIFETIME="The time-to-expiration of the JSON Web Token used by the auth service - this is set to `1d` in `sample.env` meaning user authentication is valid for 1 day"

examples/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For additional details on how Chronos works this example, please review the Dock
3939

4040
Peform the following steps in each of the _Auth_, _Items_, _Inventory_, _Orders_, _Client_, and _Event-Bus_ directories
4141

42-
1. Add a `.env` file to each of _Auth_, _Items_, _Inventory_, _Orders_, _Event-Bus_, and _Client_ folders with the following key/value pairs (a `sample.env` file is provided in the `/examples/docker` directory):
42+
1. Add a `.env` file to each of _Auth_, _Items_, _Inventory_, _Orders_, _Event-Bus_, and _Client_ folders with the following key/value pairs (a `.env.example` file is provided in the `/examples/docker` directory):
4343

4444
- **NOTE**: Ensure that there are no quotes surrounding any of the keys and values.
4545

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file serves as a template for the .env file you will be creating while following the README steps.
2+
CHRONOS_GRAFANA_API_KEY=Bearer "<access-token-created-in-step-3-here]>"
3+
CHRONOS_DB="<MongoDB-or-PostgreSQL>"
4+
# The URI to the desired MongoDB or PostgreSQL database to save health metrics via Chronos
5+
CHRONOS_URI="<database-URI-here>"

0 commit comments

Comments
 (0)