feat(content-server): scaffold SVSim.ContentServer
New ASP.NET Core 8 web project, standalone (no project references). Serves the CDN-mirror tree from a configured root via UseStaticFiles mounted at /dl/, with ServeUnknownFileTypes=true + DefaultContentType=octet-stream since blob filenames are bare MD5 hashes with no extension and asset extensions (.unity3d/.acb/.usm) aren't in the default MIME map. Configuration: SVSIM_CONTENT_ROOT env var (or Content:Root in appsettings, or --Content:Root cli arg) points at the asset root containing the dl/ subdirectory. The asset root is populated by data_dumps/scripts/ content_cdn_mirror.py in the outer repo (~22 GB Eng+Jpn). Listens on port 5149 (distinct from EmulatedEntrypoint's 5148). Lightweight request logging via inline middleware emits status/method/path/ms for every request. /health returns "ok". End-to-end smoke verified against the populated working copy at 4670rPsPMVlRTd2: - Both lang tier-1s served (Eng 1013b / Jpn 955b), MD5s match live CDN. - A category manifest (bg_assetmanifest Eng) served + verified. - A 4.5 MB font asset bundle served + MD5-verified. - A Jpn voice from Sound/Jpn/ served + MD5-verified. - Hardlinked content (master_ai_ally_common.unity3d, hash shared across langs) served identically from both Resource/Eng/ and Resource/Jpn/. - 404 for missing blobs (correct). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SVSim.BattleEngine", "SVSim
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SVSim.BattleEngine.Tests", "SVSim.BattleEngine.Tests\SVSim.BattleEngine.Tests.csproj", "{68F3F596-CAD5-4326-8779-AD8C7BD20CDA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SVSim.ContentServer", "SVSim.ContentServer\SVSim.ContentServer.csproj", "{AC3897E1-7745-49D0-BFA1-7D859D317C07}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -49,5 +51,9 @@ Global
|
||||
{68F3F596-CAD5-4326-8779-AD8C7BD20CDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{68F3F596-CAD5-4326-8779-AD8C7BD20CDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{68F3F596-CAD5-4326-8779-AD8C7BD20CDA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AC3897E1-7745-49D0-BFA1-7D859D317C07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AC3897E1-7745-49D0-BFA1-7D859D317C07}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AC3897E1-7745-49D0-BFA1-7D859D317C07}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AC3897E1-7745-49D0-BFA1-7D859D317C07}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Reference in New Issue
Block a user