From 0667c6ec391d823b8b58d63876267386d530e612 Mon Sep 17 00:00:00 2001 From: kunkliricsi Date: Wed, 25 Nov 2020 12:22:51 +0100 Subject: [PATCH] Added environment specific appsettings --- Birdmap.API/appsettings.Development.json | 45 ++++++++++++++++++++++++ Birdmap.API/appsettings.json | 35 ++++++------------ 2 files changed, 55 insertions(+), 25 deletions(-) diff --git a/Birdmap.API/appsettings.Development.json b/Birdmap.API/appsettings.Development.json index 8983e0f..a292e83 100644 --- a/Birdmap.API/appsettings.Development.json +++ b/Birdmap.API/appsettings.Development.json @@ -5,5 +5,50 @@ "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } + }, + "Kestrel": { + "Certificates": { + "Default": { + "Password": "certpass123", + "Path": "C:\\Users\\Ricsi\\AppData\\Roaming\\ASP.NET\\Https\\aspnetapp.pfx" + } + } + }, + "AllowedHosts": "*", + "Secret": "7vj.3KW.hYE!}4u6", + // "LocalDbConnectionString": "Data Source=DESKTOP-3600\\SQLEXPRESS;Initial Catalog=birdmap;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", + "LocalDbConnectionString": "Data Source=DESKTOP-3600;Initial Catalog=birdmap2;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", + "Defaults": { + "Services": { + "Local Database": "https://localhost:44331/health", + "KMLabz Services": "https://birb.k8s.kmlabz.com/devices" + }, + "Users": [ + { + "Name": "admin", + "Password": "pass", + "Role": "Admin" + }, + { + "Name": "user", + "Password": "pass", + "Role": "User" + } + ] + }, + "UseDummyServices": true, + "ServicesBaseUrl": "https://birb.k8s.kmlabz.com/", + "Mqtt": { + "BrokerHostSettings": { + "Host": "localhost", + "Port": 1883 + }, + + "ClientSettings": { + "Id": "ASP.NET Core client", + "Username": "username", + "Password": "password", + "Topic": "devices/output" + } } } diff --git a/Birdmap.API/appsettings.json b/Birdmap.API/appsettings.json index 5312c57..9f971dd 100644 --- a/Birdmap.API/appsettings.json +++ b/Birdmap.API/appsettings.json @@ -9,47 +9,32 @@ "Kestrel": { "Certificates": { "Default": { - "Password": "certpass123", - "Path": "C:\\Users\\Ricsi\\AppData\\Roaming\\ASP.NET\\Https\\aspnetapp.pfx" + "Password": "", + "Path": "" } } }, "AllowedHosts": "*", - "Secret": "7vj.3KW.hYE!}4u6", - // "LocalDbConnectionString": "Data Source=DESKTOP-3600\\SQLEXPRESS;Initial Catalog=birdmap;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", - "LocalDbConnectionString": "Data Source=DESKTOP-3600;Initial Catalog=birdmap2;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", - //"LocalDbConnectionString": "Data Source=db;Initial Catalog=birdmap;User=sa;Password=RPSsql12345", + "Secret": "", + "LocalDbConnectionString": "", "Defaults": { "Services": { - "Local Database": "https://localhost:44331/health", - "KMLabz Services": "https://birb.k8s.kmlabz.com/devices" }, - "Users": [ - { - "Name": "admin", - "Password": "pass", - "Role": "Admin" - }, - { - "Name": "user", - "Password": "pass", - "Role": "User" - } - ] + "Users": [] }, - "UseDummyServices": true, + "UseDummyServices": false, "ServicesBaseUrl": "https://birb.k8s.kmlabz.com/", "Mqtt": { "BrokerHostSettings": { - "Host": "localhost", + "Host": "", "Port": 1883 }, "ClientSettings": { "Id": "ASP.NET Core client", - "Username": "username", - "Password": "password", - "Topic": "devices/output" + "Username": "", + "Password": "", + "Topic": "" } } }