Fix gamehub connection + config
This commit is contained in:
@@ -16,7 +16,7 @@ public class GameHubNode : IAsyncDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.hubConnection = new HubConnectionBuilder()
|
this.hubConnection = new HubConnectionBuilder()
|
||||||
.WithUrl(new Uri($"{baseUrl}/gamehub", UriKind.Absolute), options =>
|
.WithUrl(new Uri(new Uri(baseUrl, UriKind.Absolute), "gamehub"), options =>
|
||||||
{
|
{
|
||||||
options.HttpMessageHandlerFactory = handler => new CookieCredentialsMessageHandler { InnerHandler = handler };
|
options.HttpMessageHandlerFactory = handler => new CookieCredentialsMessageHandler { InnerHandler = handler };
|
||||||
options.SkipNegotiation = true;
|
options.SkipNegotiation = true;
|
||||||
|
|||||||
@@ -1,26 +1,23 @@
|
|||||||
{
|
{
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Warning",
|
"Default": "Warning",
|
||||||
"Microsoft": "Warning",
|
"Microsoft": "Warning",
|
||||||
"Microsoft.Hosting.Lifetime": "Error",
|
"Microsoft.Hosting.Lifetime": "Error",
|
||||||
"Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information",
|
"Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information",
|
||||||
"System.Net.Http.HttpClient": "Error",
|
"System.Net.Http.HttpClient": "Error",
|
||||||
"Microsoft.AspNetCore.SignalR": "Debug",
|
"Microsoft.AspNetCore.SignalR": "Debug",
|
||||||
"Microsoft.AspNetCore.Http.Connections": "Debug"
|
"Microsoft.AspNetCore.Http.Connections": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AzureAd": {
|
"AzureAd": {
|
||||||
"Authority": "https://login.microsoftonline.com/common",
|
"Authority": "https://login.microsoftonline.com/common",
|
||||||
"ClientId": "935df672-efa6-45fa-b2e8-b76dfd65a122",
|
"ClientId": "935df672-efa6-45fa-b2e8-b76dfd65a122",
|
||||||
"ValidateAuthority": true,
|
"ValidateAuthority": true,
|
||||||
"Scopes": [
|
"Scopes": [
|
||||||
"api://c1e94676-cab0-42ba-8b6c-9532b8486fff/DefaultScope"
|
"api://c1e94676-cab0-42ba-8b6c-9532b8486fff/DefaultScope"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ShogiApiUrl2": "https://api.lucaserver.space/Shogi.Api/",
|
"ShogiApiUrl": "https://localhost:5001",
|
||||||
"SocketUrl2": "wss://api.lucaserver.space/Shogi.Api/",
|
"ShogiApiUrl2": "https://api.lucaserver.space/Shogi.Api/"
|
||||||
|
|
||||||
"ShogiApiUrl": "https://localhost:5001",
|
|
||||||
"SocketUrl": "wss://localhost:5001"
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user