mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Final bit of cleanup on the server to work with a CDN.
This commit is contained in:
@ -20,6 +20,6 @@ namespace Wabbajack.BuildServer.Models
|
|||||||
[BsonIgnore]
|
[BsonIgnore]
|
||||||
public string MungedName => $"{Path.GetFileNameWithoutExtension(Name)}-{Id}{Path.GetExtension(Name)}";
|
public string MungedName => $"{Path.GetFileNameWithoutExtension(Name)}-{Id}{Path.GetExtension(Name)}";
|
||||||
|
|
||||||
[BsonIgnore] public object Uri => $"https://build.wabbajack.org/files/{MungedName}";
|
[BsonIgnore] public object Uri => $"https://wabbajack.b-cdn.net/{MungedName}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,6 @@ namespace Wabbajack.BuildServer
|
|||||||
FileProvider = new PhysicalFileProvider(
|
FileProvider = new PhysicalFileProvider(
|
||||||
Path.Combine(Directory.GetCurrentDirectory(), "public")),
|
Path.Combine(Directory.GetCurrentDirectory(), "public")),
|
||||||
StaticFileOptions = {ServeUnknownFileTypes = true},
|
StaticFileOptions = {ServeUnknownFileTypes = true},
|
||||||
EnableDirectoryBrowsing = true
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
|
Reference in New Issue
Block a user