4 Commits
Author SHA1 Message Date
douwe c8b6d23917 fixed indien problem. 2026-10-14 07:40:00 +02:00
douwe b40720b15c Merge branch 'main' of ssh://git.douwco.be:2222/douwe/proostenkrant.net 2026-10-09 14:56:09 +02:00
douwe c619d77067 Added tinne and chiel to profiles. 2026-10-09 14:55:34 +02:00
douwe 529f9aafd6 Add Chiel and Tinne to the family profiles
Seed list and init.sql both, so fresh volumes and existing databases
pick them up; their photos match by display name.
2026-10-09 14:53:18 +02:00
5 changed files with 20 additions and 1 deletions
+3 -1
View File
@@ -78,7 +78,9 @@ INSERT INTO users (username, display_name, profile_image) VALUES
('kevin', 'Kevin', NULL),
('luc', 'Luc', NULL),
('tilde', 'Tilde', NULL),
('mattis', 'Mattis', NULL);
('mattis', 'Mattis', NULL),
('chiel', 'Chiel', NULL),
('tinne', 'Tinne', NULL);
-- Insert universal password setting
INSERT INTO settings (key_name, value) VALUES
Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

+15
View File
@@ -1,10 +1,23 @@
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Mvc;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddEnvironmentVariables();
// De app draait achter een reverse proxy (nginx) die TLS afhandelt en de
// request als plain http doorgeeft. Zonder deze headers genereert de app
// http://-redirects, die de enhanced navigation van Blazor breekt (fetch
// weigert een https->http downgrade).
builder.Services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
// De proxy komt niet per se vanaf loopback (docker-netwerk of andere host).
options.KnownIPNetworks.Clear();
options.KnownProxies.Clear();
});
builder.Services.AddRazorComponents();
builder.Services.AddCascadingAuthenticationState();
@@ -54,6 +67,8 @@ catch (Exception ex)
Console.WriteLine($"Seed overslaan: {ex.Message}");
}
app.UseForwardedHeaders();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/fout", createScopeForErrors: true);
+2
View File
@@ -32,6 +32,8 @@ public static class Seed
("luc", "Luc"),
("tilde", "Tilde"),
("mattis", "Mattis"),
("chiel", "Chiel"),
("tinne", "Tinne"),
};
public static async Task EnsureDefaultsAsync(Db db)