diff --git a/DysonNetwork.Zone/Caddyfile b/DysonNetwork.Zone/Caddyfile new file mode 100644 index 0000000..233cecc --- /dev/null +++ b/DysonNetwork.Zone/Caddyfile @@ -0,0 +1,5 @@ +http://localhost:3001 { + reverse_proxy localhost:8007 { + header_up X-SiteName "ciallo" + } +} diff --git a/DysonNetwork.Zone/Pages/Index.cshtml b/DysonNetwork.Zone/Pages/Index.cshtml index bcf108a..b3123cc 100644 --- a/DysonNetwork.Zone/Pages/Index.cshtml +++ b/DysonNetwork.Zone/Pages/Index.cshtml @@ -2,14 +2,18 @@ @model IndexModel @{ ViewData["Title"] = "Solar Network Pages"; - ViewData["SiteName"] = Request.Headers.TryGetValue("X-SiteName", out var val) ? val : "main"; + ViewData["SiteName"] = Model.SiteName ?? "main"; }
Here are the Solar Network Pages construction site
+Here are the Solar Network Pages
And you're accessing the site @ViewData["SiteName"]
++ The reason you're seeing this is the author of the site + haven't configure anything that match this route. +