mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52e1d4f61c |
@@ -53,14 +53,12 @@ WORKDIR /src
|
||||
# DorkNet.Models project ref, so its csproj needs to be present too.
|
||||
COPY DorkNet.Server/DorkNet.Server.csproj DorkNet.Server/
|
||||
COPY DorkNet.Models/DorkNet.Models.csproj DorkNet.Models/
|
||||
COPY DorkNet.Contracts/DorkNet.Contracts.csproj DorkNet.Contracts/
|
||||
RUN dotnet restore DorkNet.Server/DorkNet.Server.csproj
|
||||
|
||||
# Now copy the rest of the .NET source, then drop the prebuilt admin
|
||||
# SPA into wwwroot/admin so the publish step ships it as static content.
|
||||
COPY DorkNet.Server/ DorkNet.Server/
|
||||
COPY DorkNet.Models/ DorkNet.Models/
|
||||
COPY DorkNet.Contracts/ DorkNet.Contracts/
|
||||
COPY --from=admin-ui /wwwroot/admin/ DorkNet.Server/wwwroot/admin/
|
||||
COPY --from=site /wwwroot/site/ DorkNet.Server/wwwroot/site/
|
||||
|
||||
|
||||
@@ -167,11 +167,6 @@ public static class DorkNetRouteOwnership
|
||||
public static IReadOnlyList<string> PublicSubdomains =>
|
||||
ServiceRouteGroups
|
||||
.SelectMany(group => group.HostSubdomains)
|
||||
// api.* is a shared public host: it owns no service by host and is
|
||||
// dispatched by path (see ResolvePublicService's path-prefix pass),
|
||||
// so it never appears in a group's HostSubdomains. It must still be
|
||||
// whitelisted here or HostFiltering rejects every api.{apex} request.
|
||||
.Append("api")
|
||||
.Append(AdminHost)
|
||||
.Append("feed")
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
|
||||
@@ -73,7 +73,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DorkNet.Models\DorkNet.Models.csproj" />
|
||||
<ProjectReference Include="..\DorkNet.Contracts\DorkNet.Contracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Service-slice containers reference DorkNet.Server for shared controllers
|
||||
|
||||
Reference in New Issue
Block a user