From d02a5963cf4d228ed5a8acd79d589ae6295542bb Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Mon, 8 Jun 2026 22:30:55 +0330 Subject: [PATCH] fix: HTTPS URLs in sitemap, robots, canonical + og:image on homepage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add UseForwardedHeaders middleware so Request.Scheme = "https" behind nginx - Add SITE_BASE_URL env var fallback for sitemap.xml, robots.txt, and all Razor page canonical/og URLs — set it to https://draletaha.ir in .env - Add og:image to homepage using hero photo - Add SITE_BASE_URL to docker-compose.yml environment block Co-Authored-By: Claude Sonnet 4.5 --- DrSousan.Api/Pages/Blog/Index.cshtml | 2 +- DrSousan.Api/Pages/Blog/Post.cshtml | 2 +- DrSousan.Api/Pages/Index.cshtml | 12 ++++++++++-- DrSousan.Api/Program.cs | 16 ++++++++++++++-- docker-compose.yml | 1 + 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/DrSousan.Api/Pages/Blog/Index.cshtml b/DrSousan.Api/Pages/Blog/Index.cshtml index bc3dd7c..78709f0 100644 --- a/DrSousan.Api/Pages/Blog/Index.cshtml +++ b/DrSousan.Api/Pages/Blog/Index.cshtml @@ -4,7 +4,7 @@ @section Head { @ViewData["Title"] - +