Skip to content

Commit 5972c86

Browse files
committed
feat: adjusted .env files
1 parent 59200b6 commit 5972c86

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

.env

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
REDIS_URL='redis://localhost:6379'
21
ENVIRONMENT='development'
32
MODE='static'
3+
NATS_URL='nats://localhost:4222'
4+
NATS_BUCKET='flow_store'
45
RUNTIME_TOKEN="<token>"
5-
FLOW_FALLBACK_PATH='./flow/test_flow_one.json'
6+
FLOW_FALLBACK_PATH='../flow/test_flow_one.json'
7+
GRPC_HOST='127.0.0.1'
8+
GRPC_PORT=8081
9+
WITH_HEALTH_SERVICE=false
10+
SAGITTARIUS_URL='http://localhost:50051'

.env-example

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
REDIS_URL='redis://localhost:6379'
2-
ENVIRONMENT='development'
3-
MODE='static'
1+
ENVIRONMENT='production'
2+
MODE='dynamic'
3+
4+
NATS_URL='nats://localhost:4222'
5+
NATS_BUCKET='flow_store'
6+
47
RUNTIME_TOKEN="<token>"
5-
FLOW_FALLBACK_PATH='../flow/test_flow_one.json'
8+
FLOW_FALLBACK_PATH='./path/to/flow.json'
9+
10+
GRPC_HOST='127.0.0.1'
11+
GRPC_PORT=50051
12+
13+
WITH_HEALTH_SERVICE=false
14+
15+
SAGITTARIUS_URL='http://localhost:50051'

src/.env

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/configuration/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Config {
6666
grpc_host: env_with_default("GRPC_HOST", String::from("127.0.0.1")),
6767
with_health_service: env_with_default("WITH_HEALTH_SERVICE", false),
6868
runtime_token: env_with_default("RUNTIME_TOKEN", String::from("default_session_token")),
69-
backend_url: env_with_default("BACKEND_URL", String::from("http://localhost:8080")),
69+
backend_url: env_with_default("SAGITTARIUS_URL", String::from("http://localhost:50051")),
7070
}
7171
}
7272

0 commit comments

Comments
 (0)