From d30a233e34858276f1a5296fc2067e0b1b447afc Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Fri, 22 Aug 2025 20:27:44 +0200 Subject: [PATCH 1/2] Fix nats url environment variable --- src/configuration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configuration.rs b/src/configuration.rs index ba0396f..c504fd0 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -35,7 +35,7 @@ impl Config { Config { environment: env_with_default("ENVIRONMENT", Environment::Development), mode: env_with_default("MODE", Mode::STATIC), - nats_url: env_with_default("RABBITMQ_URL", String::from("amqp://localhost:5672")), + nats_url: env_with_default("NATS_URL", String::from("nats://localhost:5672")), aquila_url: env_with_default("AQUILA_URL", String::from("http://localhost:50051")), with_health_service: env_with_default("WITH_HEALTH_SERVICE", false), grpc_host: env_with_default("GRPC_HOST", "127.0.0.1".to_string()), From 77a68b546c5f8423b8b29380504988c2f9ec6688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20G=C3=B6tz?= <52959657+raphael-goetz@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:30:12 +0200 Subject: [PATCH 2/2] fix: made correct host in default --- .env-example | 2 +- src/configuration.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env-example b/.env-example index 56a4f63..d1859ac 100644 --- a/.env-example +++ b/.env-example @@ -1,6 +1,6 @@ ENVIRONMENT='development' MODE='dynamic' -NATS_URL='amqp://localhost:5672' +NATS_URL='nats://localhost:4222' AQUILA_URL='http://localhost:8080' WITH_HEALTH_SERVICE=false GRPC_HOST='127.0.0.1' diff --git a/src/configuration.rs b/src/configuration.rs index c504fd0..3ce933c 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -35,7 +35,7 @@ impl Config { Config { environment: env_with_default("ENVIRONMENT", Environment::Development), mode: env_with_default("MODE", Mode::STATIC), - nats_url: env_with_default("NATS_URL", String::from("nats://localhost:5672")), + nats_url: env_with_default("NATS_URL", String::from("nats://localhost:4222")), aquila_url: env_with_default("AQUILA_URL", String::from("http://localhost:50051")), with_health_service: env_with_default("WITH_HEALTH_SERVICE", false), grpc_host: env_with_default("GRPC_HOST", "127.0.0.1".to_string()),