@@ -60,7 +60,7 @@ else
@* *@
- @GetRssSourceName((RssFeedSources)@feed.Source) | @feed.PubDate?.ToLocalTime()
+ @GetRssSourceName((RssFeedSources)@feed.Source) | @feed.PubDate?.ToLocalTime().ToString("dd.MM.yyyy HH:mm")
diff --git a/RBLNews.Shared/Models/AppSettingsModel.cs b/RBLNews.Shared/Models/AppSettingsModel.cs
new file mode 100644
index 0000000..24d434a
--- /dev/null
+++ b/RBLNews.Shared/Models/AppSettingsModel.cs
@@ -0,0 +1,6 @@
+namespace RBLNews.Shared.Models;
+
+public class AppSettingsModel
+{
+ public string BackendApiUrl { get; set; }
+}
\ No newline at end of file
diff --git a/RBLNews.Shared/RBLNews.Shared.csproj b/RBLNews.Shared/RBLNews.Shared.csproj
index b6d1027..15359dd 100644
--- a/RBLNews.Shared/RBLNews.Shared.csproj
+++ b/RBLNews.Shared/RBLNews.Shared.csproj
@@ -6,6 +6,22 @@
enable
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
@@ -20,4 +36,20 @@
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+
+ PreserveNewest
+
+
+
diff --git a/RBLNews.Shared/RBLNews.Shared.csproj.orig b/RBLNews.Shared/RBLNews.Shared.csproj.orig
deleted file mode 100644
index 751c394..0000000
--- a/RBLNews.Shared/RBLNews.Shared.csproj.orig
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
- net8.0
- enable
- enable
-
-
-
-
-
-
-
-
-<<<<<<< HEAD
-=======
-
-
-
->>>>>>> css_bootstrap_blazor
-
-
-
-
-
-
diff --git a/RBLNews.Shared/Services/Contracts/IConfigService.cs b/RBLNews.Shared/Services/Contracts/IConfigService.cs
new file mode 100644
index 0000000..b92b96c
--- /dev/null
+++ b/RBLNews.Shared/Services/Contracts/IConfigService.cs
@@ -0,0 +1,8 @@
+using RBLNews.Shared.Models;
+
+namespace RBLNews.Shared.Services.Contracts;
+
+public interface IConfigService
+{
+ AppSettingsModel? AppSettings { get; }
+}
\ No newline at end of file
diff --git a/RBLNews.Shared/Services/EnvironmentVariablesService.cs b/RBLNews.Shared/Services/EnvironmentVariablesService.cs
new file mode 100644
index 0000000..ccd8048
--- /dev/null
+++ b/RBLNews.Shared/Services/EnvironmentVariablesService.cs
@@ -0,0 +1,6 @@
+namespace RBLNews.Shared.Services;
+
+public class EnvironmentVariablesService
+{
+ public string? RblApiUrl => Environment.GetEnvironmentVariable("RblApiUrl");
+}
\ No newline at end of file
diff --git a/RBLNews.Shared/Services/FeedDataService.cs b/RBLNews.Shared/Services/FeedDataService.cs
index 6a13540..a7746e4 100644
--- a/RBLNews.Shared/Services/FeedDataService.cs
+++ b/RBLNews.Shared/Services/FeedDataService.cs
@@ -2,6 +2,8 @@
using System.Net.Http.Json;
using RBLFeederCommon.Models.RssFeed;
+using RBLNews.Shared.Services.Contracts;
+
namespace RBLNews.Shared.Services
{
public interface IFeedDataService
@@ -15,15 +17,22 @@ namespace RBLNews.Shared.Services
public class FeedDataService : IFeedDataService
{
+ private readonly IConfigService _configService;
+
private static readonly HttpClient httpClient = new();
public RssVM Feeds { get; private set; }
public Action DataChanged { get; set; }
+ public FeedDataService(IConfigService configService)
+ {
+ this._configService = configService;
+ }
+
public async Task LoadFeeds()
{
- Feeds = await httpClient.GetFromJsonAsync
("https://rblnews.de/api/feeds") ?? new RssVM();
+ Feeds = await httpClient.GetFromJsonAsync($"{this._configService.AppSettings.BackendApiUrl}/feeds") ?? new RssVM();
DataChanged.Invoke();
}
}
diff --git a/RBLNews.Shared/_Imports.razor.BASE b/RBLNews.Shared/_Imports.razor.BASE
deleted file mode 100644
index 954960d..0000000
--- a/RBLNews.Shared/_Imports.razor.BASE
+++ /dev/null
@@ -1,4 +0,0 @@
-@* ANT CSS DESIGN IMPORT -------------------- *@
-@using AntDesign
-
-@using Microsoft.AspNetCore.Components.Web
diff --git a/RBLNews.Shared/_Imports.razor.LOCAL b/RBLNews.Shared/_Imports.razor.LOCAL
deleted file mode 100644
index 7728512..0000000
--- a/RBLNews.Shared/_Imports.razor.LOCAL
+++ /dev/null
@@ -1 +0,0 @@
-@using Microsoft.AspNetCore.Components.Web
diff --git a/RBLNews.Shared/_Imports.razor.REMOTE b/RBLNews.Shared/_Imports.razor.REMOTE
deleted file mode 100644
index f1f2ce8..0000000
--- a/RBLNews.Shared/_Imports.razor.REMOTE
+++ /dev/null
@@ -1,4 +0,0 @@
-@* ANT CSS DESIGN IMPORT -------------------- *@
-@using BlazorBootstrap;
-
-@using Microsoft.AspNetCore.Components.Web
diff --git a/RBLNews.Shared/_Imports.razor.orig b/RBLNews.Shared/_Imports.razor.orig
deleted file mode 100644
index dc53ee4..0000000
--- a/RBLNews.Shared/_Imports.razor.orig
+++ /dev/null
@@ -1,8 +0,0 @@
-<<<<<<< HEAD
-@using Microsoft.AspNetCore.Components.Web
-=======
-@* ANT CSS DESIGN IMPORT -------------------- *@
-@using BlazorBootstrap;
-
-@using Microsoft.AspNetCore.Components.Web
->>>>>>> css_bootstrap_blazor
diff --git a/RBLNews.Shared/wwwroot/appsettings.Development.json b/RBLNews.Shared/wwwroot/appsettings.Development.json
new file mode 100644
index 0000000..7a608cd
--- /dev/null
+++ b/RBLNews.Shared/wwwroot/appsettings.Development.json
@@ -0,0 +1,11 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "App": {
+ "BackendApiUrl": "https://localhost:5147"
+ }
+}
diff --git a/RBLNews.Shared/wwwroot/appsettings.Production.json b/RBLNews.Shared/wwwroot/appsettings.Production.json
new file mode 100644
index 0000000..0c2c7dc
--- /dev/null
+++ b/RBLNews.Shared/wwwroot/appsettings.Production.json
@@ -0,0 +1,12 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*",
+ "App": {
+ "BackendApiUrl": "https://rblnews.de"
+ }
+}
diff --git a/RBLNews.Shared/wwwroot/appsettings.Test.json b/RBLNews.Shared/wwwroot/appsettings.Test.json
new file mode 100644
index 0000000..8ceaf0e
--- /dev/null
+++ b/RBLNews.Shared/wwwroot/appsettings.Test.json
@@ -0,0 +1,12 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*",
+ "App": {
+ "BackendApiUrl": "https://rbl.wohlleben.dev"
+ }
+}
diff --git a/RBLNews.Shared/wwwroot/appsettings.json b/RBLNews.Shared/wwwroot/appsettings.json
new file mode 100644
index 0000000..10f68b8
--- /dev/null
+++ b/RBLNews.Shared/wwwroot/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/RBLNews.Shared/wwwroot/css/app.css b/RBLNews.Shared/wwwroot/css/app.css
index 472d329..dbed1f9 100644
--- a/RBLNews.Shared/wwwroot/css/app.css
+++ b/RBLNews.Shared/wwwroot/css/app.css
@@ -3,6 +3,10 @@ rot: #DD0741
schrift: #4b4b4b
*/
+body {
+ color: #4b4b4b;
+}
+
@font-face {
font-family: "Nanum Myeongjo", serif !important;
font-weight: 400;
@@ -13,6 +17,13 @@ schrift: #4b4b4b
#feeds-page {
color: #4b4b4b;
}
+#feeds-list {
+ margin-top: 15px;
+}
+
+#filter {
+ margin-top: 15px;
+}
.card {
color: #4b4b4b;
@@ -31,20 +42,21 @@ schrift: #4b4b4b
font-size: 0.8em;
}
-nav .container-fluid {
+.container-fluid {
padding-right: 0 !important;
padding-left: 0 !important;
}
+
nav .top-row {
height: 1.8rem;
background-color: rgb(221, 7, 65);
color: #eee;
}
- /*nav .top-row h1, h2, h3, h4, h5 {*/
- /* color: #eee;*/
- /*}*/
+/*nav .top-row h1, h2, h3, h4, h5 {*/
+/* color: #eee;*/
+/*}*/
#filter button {
@@ -59,21 +71,20 @@ nav .top-row {
/*}*/
.btn-primary {
- color: #fff;
+ color: #eee;
background-color: #f75581;
border-color: #DD0741;
}
.btn-primary:hover {
- color: inherit;
background-color: inherit;
- border-color: inherit;
+ border-color: #4b4b4b;
}
.btn-outline-primary {
- color: #f75581;
+ color: #4b4b4b;
background-color: #fff;
- border-color: #DD0741;
+ border-color: #4b4b4b;
}
.btn-outline-primary:hover {
@@ -102,10 +113,9 @@ nav .top-row {
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}
- .navbar-toggler:checked {
- background-color: rgba(255, 255, 255, 0.5);
- }
-
+.navbar-toggler:checked {
+ background-color: rgba(255, 255, 255, 0.5);
+}
.navbar-brand {
@@ -139,32 +149,32 @@ nav .top-row {
padding-bottom: 0.6rem;
}
- .nav-item:first-of-type {
- padding-top: 1rem;
- }
+.nav-item:first-of-type {
+ padding-top: 1rem;
+}
- .nav-item:last-of-type {
- padding-bottom: 1rem;
- }
+.nav-item:last-of-type {
+ padding-bottom: 1rem;
+}
- .nav-item ::deep a {
- color: #d7d7d7;
- border-radius: 4px;
- height: 3rem;
- display: flex;
- align-items: center;
- line-height: 3rem;
- }
+.nav-item ::deep a {
+ color: #d7d7d7;
+ border-radius: 4px;
+ height: 3rem;
+ display: flex;
+ align-items: center;
+ line-height: 3rem;
+}
- .nav-item ::deep a.active {
- background-color: rgba(255,255,255,0.37);
- color: white;
- }
+.nav-item ::deep a.active {
+ background-color: rgba(255, 255, 255, 0.37);
+ color: white;
+}
- .nav-item ::deep a:hover {
- background-color: rgba(255,255,255,0.1);
- color: white;
- }
+.nav-item ::deep a:hover {
+ background-color: rgba(255, 255, 255, 0.1);
+ color: white;
+}
.nav-scrollable {
display: none;
@@ -189,8 +199,6 @@ nav .top-row {
}
-
-
.loading {
position: absolute;
top: 45%;
@@ -226,12 +234,12 @@ nav .top-row {
z-index: 1000;
}
- #blazor-error-ui .dismiss {
- cursor: pointer;
- position: absolute;
- right: 0.75rem;
- top: 0.5rem;
- }
+#blazor-error-ui .dismiss {
+ cursor: pointer;
+ position: absolute;
+ right: 0.75rem;
+ top: 0.5rem;
+}
.blazor-error-boundary {
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
@@ -239,9 +247,9 @@ nav .top-row {
color: white;
}
- .blazor-error-boundary::after {
- content: "An error has occurred."
- }
+.blazor-error-boundary::after {
+ content: "An error has occurred."
+}
.status-bar-safe-area {
display: none;
@@ -263,6 +271,26 @@ nav .top-row {
}
}
+.swb-container {
+ position: relative;
+ padding-top: 10px;
+}
+
+.swb-badge {
+ position: absolute;
+ top: -5px;
+ /*height:20px;*/
+ min-width: 20px;
+ z-index: 999;
+ background-color: #DD0741;
+ display: inline-block;
+ margin: 8px 2px;
+ border-radius: 18px;
+ text-align: center;
+ font-size: 0.7em;
+ color: #eee;
+}
+
/*html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
diff --git a/RBLNews.Web/Components/App.razor.orig b/RBLNews.Web/Components/App.razor.orig
deleted file mode 100644
index 76ed369..0000000
--- a/RBLNews.Web/Components/App.razor.orig
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
- @* *@
-
- @* *@
- @* *@
-
-
-
-
-
-
-<<<<<<< HEAD
-=======
-
-
-
-
-
-
-
->>>>>>> css_bootstrap_blazor
-
-
-
-
diff --git a/RBLNews.Web/Program.cs b/RBLNews.Web/Program.cs
index 9ca2574..38aa526 100644
--- a/RBLNews.Web/Program.cs
+++ b/RBLNews.Web/Program.cs
@@ -1,24 +1,39 @@
+using RBLNews.Shared.Models;
using RBLNews.Shared.Services;
+using RBLNews.Shared.Services.Contracts;
using RBLNews.Web.Components;
+using RBLNews.Web.Services;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
- .AddInteractiveServerComponents();
+ .AddInteractiveServerComponents();
builder.Services.AddBlazorBootstrap();
+builder.Services.AddSingleton();
builder.Services.AddSingleton();
builder.Services.AddSingleton();
+// required for production
+builder.WebHost.UseStaticWebAssets();
+
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
- app.UseExceptionHandler("/Error", createScopeForErrors: true);
- // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
- app.UseHsts();
+ app.UseExceptionHandler("/Error", createScopeForErrors: true);
+
+ // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
+ app.UseHsts();
+}
+
+AppSettingsModel? appSettings = app.Configuration.GetSection("App").Get();
+
+if (string.IsNullOrEmpty(appSettings?.BackendApiUrl))
+{
+ throw new Exception($"can't instantiate services, due to paramters are null. backendApiUrl: '{appSettings?.BackendApiUrl}'");
}
app.UseHttpsRedirection();
@@ -27,7 +42,7 @@ app.UseStaticFiles();
app.UseAntiforgery();
app.MapRazorComponents()
- .AddInteractiveServerRenderMode()
- .AddAdditionalAssemblies(typeof(RBLNews.Shared._Imports).Assembly);
+ .AddInteractiveServerRenderMode()
+ .AddAdditionalAssemblies(typeof( RBLNews.Shared._Imports ).Assembly);
-app.Run();
+app.Run();
\ No newline at end of file
diff --git a/RBLNews.Web/Program.cs.orig b/RBLNews.Web/Program.cs.orig
deleted file mode 100644
index 761c4fa..0000000
--- a/RBLNews.Web/Program.cs.orig
+++ /dev/null
@@ -1,36 +0,0 @@
-using RBLNews.Shared.Services;
-using RBLNews.Web.Components;
-
-var builder = WebApplication.CreateBuilder(args);
-
-// Add services to the container.
-builder.Services.AddRazorComponents()
- .AddInteractiveServerComponents();
-<<<<<<< HEAD
-=======
-builder.Services.AddBlazorBootstrap();
-
-builder.Services.AddSingleton();
-builder.Services.AddSingleton();
->>>>>>> css_bootstrap_blazor
-
-var app = builder.Build();
-
-// Configure the HTTP request pipeline.
-if (!app.Environment.IsDevelopment())
-{
- app.UseExceptionHandler("/Error", createScopeForErrors: true);
- // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
- app.UseHsts();
-}
-
-app.UseHttpsRedirection();
-
-app.UseStaticFiles();
-app.UseAntiforgery();
-
-app.MapRazorComponents()
- .AddInteractiveServerRenderMode()
- .AddAdditionalAssemblies(typeof(RBLNews.Shared._Imports).Assembly);
-
-app.Run();
diff --git a/RBLNews.Web/Properties/launchSettings.json b/RBLNews.Web/Properties/launchSettings.json
index d0779f2..42b81b2 100644
--- a/RBLNews.Web/Properties/launchSettings.json
+++ b/RBLNews.Web/Properties/launchSettings.json
@@ -18,15 +18,33 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
- "https": {
+ "https (DEV)": {
"commandName": "Project",
"dotnetRunMessages": true,
- "launchBrowser": true,
+ "launchBrowser": false,
"applicationUrl": "https://localhost:7158;http://localhost:5289",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
+ "https (TEST)": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": false,
+ "applicationUrl": "https://localhost:7158;http://localhost:5289",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Test"
+ }
+ },
+ "https (PROD)": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": false,
+ "applicationUrl": "https://localhost:7158;http://localhost:5289",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Production"
+ }
+ },
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
diff --git a/RBLNews.Web/RBLNews.Web.csproj b/RBLNews.Web/RBLNews.Web.csproj
index a259a0c..3963f4a 100644
--- a/RBLNews.Web/RBLNews.Web.csproj
+++ b/RBLNews.Web/RBLNews.Web.csproj
@@ -7,6 +7,28 @@
Linux
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
@@ -21,4 +43,8 @@
+
+
+
+
diff --git a/RBLNews.Web/Services/ConfigService.cs b/RBLNews.Web/Services/ConfigService.cs
new file mode 100644
index 0000000..bff176c
--- /dev/null
+++ b/RBLNews.Web/Services/ConfigService.cs
@@ -0,0 +1,16 @@
+using RBLNews.Shared.Models;
+using RBLNews.Shared.Services.Contracts;
+
+namespace RBLNews.Web.Services;
+
+public class ConfigService : IConfigService
+{
+ public AppSettingsModel? AppSettings { get; }
+
+ public ConfigService(IConfiguration configuration)
+ {
+ AppSettings = configuration.GetSection("App").Get();
+ if(this.AppSettings == null)
+ throw new NullReferenceException("App settings not found");
+ }
+}
\ No newline at end of file
diff --git a/RBLNews.Web/appsettings.Development.json b/RBLNews.Web/appsettings.Development.json
index 0c208ae..54323f7 100644
--- a/RBLNews.Web/appsettings.Development.json
+++ b/RBLNews.Web/appsettings.Development.json
@@ -4,5 +4,8 @@
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
+ },
+ "App": {
+ "BackendApiUrl": "https://localhost:7127"
}
}
diff --git a/RBLNews.Web/appsettings.Production.json b/RBLNews.Web/appsettings.Production.json
new file mode 100644
index 0000000..484d0cf
--- /dev/null
+++ b/RBLNews.Web/appsettings.Production.json
@@ -0,0 +1,12 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*",
+ "App": {
+ "BackendApiUrl": "https://rblnews.de/api"
+ }
+}
diff --git a/RBLNews.Web/appsettings.Test.json b/RBLNews.Web/appsettings.Test.json
new file mode 100644
index 0000000..9d1adf2
--- /dev/null
+++ b/RBLNews.Web/appsettings.Test.json
@@ -0,0 +1,12 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*",
+ "App": {
+ "BackendApiUrl": "https://rbl.wohlleben.dev/api"
+ }
+}