Final bit of cleanup on the server to work with a CDN.

This commit is contained in:
Timothy Baldridge 2020-01-19 15:36:38 -07:00
parent f2359ab273
commit 2586ee9f98
2 changed files with 1 additions and 2 deletions

View File

@ -20,6 +20,6 @@ namespace Wabbajack.BuildServer.Models
[BsonIgnore]
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}";
}
}

View File

@ -114,7 +114,6 @@ namespace Wabbajack.BuildServer
FileProvider = new PhysicalFileProvider(
Path.Combine(Directory.GetCurrentDirectory(), "public")),
StaticFileOptions = {ServeUnknownFileTypes = true},
EnableDirectoryBrowsing = true
});
app.UseEndpoints(endpoints =>