mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 14:27:25 +08:00
Update endpoints to final production endpoints
This commit is contained in:
parent
f5e7697335
commit
d895a91cd5
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace osu.Game.Online
|
namespace osu.Game.Online
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -13,36 +11,36 @@ namespace osu.Game.Online
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The base URL for the website.
|
/// The base URL for the website.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string WebsiteRootUrl { get; set; }
|
public string WebsiteRootUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The endpoint for the main (osu-web) API.
|
/// The endpoint for the main (osu-web) API.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string APIEndpointUrl { get; set; }
|
public string APIEndpointUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The OAuth client secret.
|
/// The OAuth client secret.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string APIClientSecret { get; set; }
|
public string APIClientSecret { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The OAuth client ID.
|
/// The OAuth client ID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string APIClientID { get; set; }
|
public string APIClientID { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The endpoint for the SignalR spectator server.
|
/// The endpoint for the SignalR spectator server.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SpectatorEndpointUrl { get; set; }
|
public string SpectatorEndpointUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The endpoint for the SignalR multiplayer server.
|
/// The endpoint for the SignalR multiplayer server.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string MultiplayerEndpointUrl { get; set; }
|
public string MultiplayerEndpointUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The endpoint for the SignalR metadata server.
|
/// The endpoint for the SignalR metadata server.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string MetadataEndpointUrl { get; set; }
|
public string MetadataEndpointUrl { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
|
||||||
|
|
||||||
namespace osu.Game.Online
|
|
||||||
{
|
|
||||||
public class ExperimentalEndpointConfiguration : EndpointConfiguration
|
|
||||||
{
|
|
||||||
public ExperimentalEndpointConfiguration()
|
|
||||||
{
|
|
||||||
WebsiteRootUrl = @"https://osu.ppy.sh";
|
|
||||||
APIEndpointUrl = @"https://lazer.ppy.sh";
|
|
||||||
APIClientSecret = @"FGc9GAtyHzeQDshWP5Ah7dega8hJACAJpQtw6OXk";
|
|
||||||
APIClientID = "5";
|
|
||||||
SpectatorEndpointUrl = "https://spectator.ppy.sh/spectator";
|
|
||||||
MultiplayerEndpointUrl = "https://spectator.ppy.sh/multiplayer";
|
|
||||||
MetadataEndpointUrl = "https://spectator.ppy.sh/metadata";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -102,7 +102,7 @@ namespace osu.Game
|
|||||||
public virtual bool UseDevelopmentServer => DebugUtils.IsDebugBuild;
|
public virtual bool UseDevelopmentServer => DebugUtils.IsDebugBuild;
|
||||||
|
|
||||||
public virtual EndpointConfiguration CreateEndpoints() =>
|
public virtual EndpointConfiguration CreateEndpoints() =>
|
||||||
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ExperimentalEndpointConfiguration();
|
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ProductionEndpointConfiguration();
|
||||||
|
|
||||||
public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();
|
public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user