mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 19:14:34 +01:00
mongodb default is now 127.0.0.1
This commit is contained in:
@@ -20,13 +20,13 @@ namespace Common
|
|||||||
VerboseLevel VerboseLevel { get; set; }
|
VerboseLevel VerboseLevel { get; set; }
|
||||||
|
|
||||||
[Option(DefaultValue = false)]
|
[Option(DefaultValue = false)]
|
||||||
bool UseLocalCache { get; }
|
bool UseLocalCache { get; set; }
|
||||||
|
|
||||||
[Option(DefaultValue = true)]
|
[Option(DefaultValue = true)]
|
||||||
bool CreateAccountOnLoginAttempt { get; }
|
bool CreateAccountOnLoginAttempt { get; }
|
||||||
|
|
||||||
[Option(DefaultValue = "mongodb://localhost:27017/PemukulPaku")]
|
[Option(DefaultValue = "mongodb://127.0.0.1:27017/PemukulPaku")]
|
||||||
string DatabaseUri { get; }
|
string DatabaseUri { get; set; }
|
||||||
|
|
||||||
[Option]
|
[Option]
|
||||||
IGameserver Gameserver { get; }
|
IGameserver Gameserver { get; }
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace HttpServer.Controllers
|
|||||||
return ctx.Response.WriteAsync(JsonConvert.SerializeObject(weatherData));
|
return ctx.Response.WriteAsync(JsonConvert.SerializeObject(weatherData));
|
||||||
});
|
});
|
||||||
|
|
||||||
app.Map("/bh3_os/mdk/shield/api/loadConfig", (HttpContext ctx) =>
|
app.Map("/{game_biz}/mdk/shield/api/loadConfig", (HttpContext ctx) =>
|
||||||
{
|
{
|
||||||
return ctx.Response.WriteAsJsonAsync(new
|
return ctx.Response.WriteAsJsonAsync(new
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using Common;
|
using Common;
|
||||||
using Common.Utils;
|
using Common.Utils;
|
||||||
using HttpServer.Controllers;
|
using HttpServer.Controllers;
|
||||||
|
using Microsoft.Extensions.FileProviders;
|
||||||
|
|
||||||
namespace HttpServer
|
namespace HttpServer
|
||||||
{
|
{
|
||||||
@@ -23,6 +24,7 @@ namespace HttpServer
|
|||||||
AccountController.AddHandlers(app);
|
AccountController.AddHandlers(app);
|
||||||
ConfigController.AddHandlers(app);
|
ConfigController.AddHandlers(app);
|
||||||
|
|
||||||
|
app.UseStaticFiles(new StaticFileOptions() { FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")) });
|
||||||
app.UseMiddleware<RequestLoggingMiddleware>();
|
app.UseMiddleware<RequestLoggingMiddleware>();
|
||||||
c.Log($"HTTP server started on port 80 & 443"); // A lie
|
c.Log($"HTTP server started on port 80 & 443"); // A lie
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|||||||
Reference in New Issue
Block a user