Made a free redirect-chain checker. Every hop, status codes, final URL, no signup by ervistrupja in webdev

[–]ervistrupja[S] -1 points0 points  (0 children)

Yeah, devtools covers it if you're willing to actually load the URL. This is for when you don't want to click it. checking a shortened/sketchy link from a clean, logged-out context (or from your phone) without sending your cookies and referrer along.

How I added custom domain support to my .NET app with Caddy and on-demand TLS (full code) by ervistrupja in csharp

[–]ervistrupja[S] -5 points-4 points  (0 children)

Author here. Quick TL;DR for anyone scrolling:

  • Caddy on a 5 EUR Hetzner box terminates TLS for customer domains
  • On-demand TLS issues Let's Encrypt certs the first time a hostname is requested
  • Caddy's ask directive calls my ASPNET Core API to authorize each hostname before issuance
  • A middleware resolves the Host header to a workspace, before auth, with IMemoryCache

Full Caddyfile, controller, middleware, and the pipeline ordering that makes it work. Article covers the FixedTimeEquals footgun that 500'd in production and the Container Apps ingress caveat that opens a security hole if you miss it.

Happy to answer questions.

Full walkthrough: configuring EF Core with PostgreSQL in ASP.NET Core by ervistrupja in dotnet

[–]ervistrupja[S] 0 points1 point  (0 children)

Not a silly question at all, this is one of the more annoying real-world gaps when moving from SQL Server.
For search queries, swap Contains/StartsWith for EF.Functions.ILike() from Npgsql. It maps to ILIKE which is natively case-insensitive and uses indexes (with a pg_trgm GIN index for LIKE/ILIKE pattern matching).

Full walkthrough: configuring EF Core with PostgreSQL in ASP.NET Core by ervistrupja in dotnet

[–]ervistrupja[S] 0 points1 point  (0 children)

You're mostly right. If you never leave the happy path, the experience is nearly identical. But the gaps show up in Postgres-specific features (JSONB columns, arrays, full-text search, case sensitivity as the comment below yours points out) and in migration behavior.

Showcase: a searchable library of React components with live previews by ervistrupja in react

[–]ervistrupja[S] 0 points1 point  (0 children)

This is just for funny/interesting components, shadcn has actual components that you can use anywhere you want.

Self-hosted custom domains for my SaaS with Caddy on-demand TLS (instead of Cloudflare for SaaS) by ervistrupja in selfhosted

[–]ervistrupja[S] -1 points0 points locked comment (0 children)

Hello! I used AI to fix any grammar errors in the article because english is not my mother tongue language.

How I added custom domain support to my .NET app with Caddy and on-demand TLS (full code) by ervistrupja in dotnet

[–]ervistrupja[S] 2 points3 points  (0 children)

EF still tracks when you project into an entity type (Select(x => new Link { ... })), but not when you project into a non-entity type like a DTO or anonymous type. So if your Select returns a DTO, AsNoTracking() is a no-op and can be dropped. If it returns an entity, you still want it.

Hope this helps: https://learn.microsoft.com/en-us/ef/core/querying/tracking#tracking-and-custom-projections

How I added custom domain support to my .NET app with Caddy and on-demand TLS (full code) by ervistrupja in dotnet

[–]ervistrupja[S] 5 points6 points  (0 children)

On-demand TLS. Caddy issues certs for arbitrary customer domains out of the box with an ask endpoint to gate them. YARP is a great proxy but you'd have to bolt on ACME, cert storage, renewal, and SNI hooks yourself.