✨ Gateway provide special routes for the ap
This commit is contained in:
@@ -85,6 +85,18 @@ var specialRoutes = new[]
|
|||||||
Match = new RouteMatch { Path = "/.well-known/jwks" }
|
Match = new RouteMatch { Path = "/.well-known/jwks" }
|
||||||
},
|
},
|
||||||
new RouteConfig
|
new RouteConfig
|
||||||
|
{
|
||||||
|
RouteId = "sphere-webfinger",
|
||||||
|
ClusterId = "sphere",
|
||||||
|
Match = new RouteMatch { Path = "/.well-known/webfinger" }
|
||||||
|
},
|
||||||
|
new RouteConfig
|
||||||
|
{
|
||||||
|
RouteId = "sphere-activitypub",
|
||||||
|
ClusterId = "sphere",
|
||||||
|
Match = new RouteMatch { Path = "activitypub" }
|
||||||
|
},
|
||||||
|
new RouteConfig
|
||||||
{
|
{
|
||||||
RouteId = "drive-tus",
|
RouteId = "drive-tus",
|
||||||
ClusterId = "drive",
|
ClusterId = "drive",
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
using System.Net.Mime;
|
|
||||||
using DysonNetwork.Shared.Models;
|
|
||||||
using DysonNetwork.Sphere.ActivityPub;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using NodaTime;
|
|
||||||
|
|
||||||
namespace DysonNetwork.Sphere.ActivityPub;
|
namespace DysonNetwork.Sphere.ActivityPub;
|
||||||
|
|
||||||
@@ -11,8 +7,7 @@ namespace DysonNetwork.Sphere.ActivityPub;
|
|||||||
[Route(".well-known")]
|
[Route(".well-known")]
|
||||||
public class WebFingerController(
|
public class WebFingerController(
|
||||||
AppDatabase db,
|
AppDatabase db,
|
||||||
IConfiguration configuration,
|
IConfiguration configuration
|
||||||
ILogger<WebFingerController> logger
|
|
||||||
) : ControllerBase
|
) : ControllerBase
|
||||||
{
|
{
|
||||||
private string Domain => configuration["ActivityPub:Domain"] ?? "localhost";
|
private string Domain => configuration["ActivityPub:Domain"] ?? "localhost";
|
||||||
|
|||||||
Reference in New Issue
Block a user