Skip to content

Commit e6c58da

Browse files
committed
redirect the ENV content mongo to localhost instead of the public database
1 parent dc54bf3 commit e6c58da

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

Makefile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ DIRS := examples/microservices/auth examples/microservices/client examples/micro
55

66
# Define the content of the .env file
77
define ENV_CONTENT
8-
CHRONOS_DB = MongoDB
9-
CHRONOS_URI = mongodb+srv://chronoschild15:Codesmith999@cluster0.abrbjlj.mongodb.net/
10-
CHRONOS_GRAFANA_API_KEY = Bearer glsa_89T0MEpiZfeNZLthW3mj8vMb7aXu9RTS_6ddf37da
11-
MONGO_URI_AUTH = mongodb+srv://chronoschild15:Codesmith999@cluster0.abrbjlj.mongodb.net/
12-
MONGO_URI_ITEMS = mongodb+srv://chronoschild15:Codesmith999@cluster0.abrbjlj.mongodb.net/
13-
MONGO_URI_INVENTORY = mongodb+srv://chronoschild15:Codesmith999@cluster0.abrbjlj.mongodb.net/
14-
MONGO_URI_ORDERS = mongodb+srv://chronoschild15:Codesmith999@cluster0.abrbjlj.mongodb.net/
15-
JWT_KEY = thisStringDoesNotMatterItJustNeedsToBeDefined
16-
JWT_LIFETIME = 1d
17-
endef
8+
CHRONOS_DB=MongoDB
9+
# Database connection string for Chronos to write metric to
10+
CHRONOS_URI=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
11+
12+
# Database connection strings for each microservice
13+
MONGO_URI_AUTH=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
14+
MONGO_URI_ITEMS=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
15+
MONGO_URI_INVENTORY=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
16+
MONGO_URI_ORDERS=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
17+
18+
# this is the secret for auth service to sign/verify json web tokens
19+
JWT_KEY=thisStringDoesNotMatterItJustNeedsToBeDefined
20+
# this is time til expiration for the json web token
21+
JWT_LIFETIME=1d
22+
endef
23+
24+
export ENV_CONTENT

0 commit comments

Comments
 (0)