mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-17 07:48:21 +01:00
96 lines
1.9 KiB
JSON
96 lines
1.9 KiB
JSON
{
|
|
"public": true,
|
|
"framework": "hugo",
|
|
"redirects": [
|
|
{
|
|
"source": "/amp/(.+)/",
|
|
"destination": "/$1/"
|
|
},
|
|
{
|
|
"source": "/(\\d+)/(\\d+)/(.+).html",
|
|
"destination": "/$3/"
|
|
},
|
|
{
|
|
"source": "/atom.xml",
|
|
"destination": "/index.xml"
|
|
},
|
|
{
|
|
"source": "/activitypub-support-added/",
|
|
"destination": "/news/activitypub-support-added/"
|
|
}
|
|
],
|
|
"rewrites": [
|
|
{
|
|
"source": "/([^/]*)/(.*)/",
|
|
"has": [
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/activity+json"
|
|
}
|
|
],
|
|
"destination": "/$1/$2/status.ajson"
|
|
},
|
|
|
|
{
|
|
"source": "/([^/]*)/(.*)/activity",
|
|
"destination": "/$1/$2/activity.ajson"
|
|
},
|
|
{
|
|
"source": "/.well-known/(.*)",
|
|
"destination": "/api/well-known/$1"
|
|
},
|
|
{
|
|
"source": "/nodeinfo/2.1",
|
|
"destination": "/api/nodeinfo/2.1.ts"
|
|
},
|
|
{
|
|
"source": "/authorize_interaction",
|
|
"destination": "/api/activitypub/authorize_interaction.ts"
|
|
},
|
|
{
|
|
"source": "/fedipage",
|
|
"destination": "/api/activitypub/actor.js"
|
|
},
|
|
{
|
|
"source": "/followers",
|
|
"destination": "/api/activitypub/followers.js"
|
|
},
|
|
{
|
|
"source": "/following",
|
|
"destination": "/api/activitypub/following.js"
|
|
},
|
|
{
|
|
"source": "/inbox",
|
|
"destination": "/api/activitypub/inbox.js"
|
|
},
|
|
{
|
|
"source": "/outbox",
|
|
"destination": "/api/activitypub/outbox.js"
|
|
},
|
|
{
|
|
"source": "/send-note",
|
|
"destination": "/api/activitypub/sendNote.js"
|
|
}
|
|
],
|
|
"functions": {
|
|
"**/*": {
|
|
"maxDuration": 300
|
|
}
|
|
},
|
|
"headers": [
|
|
{
|
|
"source": "/(.*).ajson",
|
|
"headers": [
|
|
{
|
|
"key": "content-type",
|
|
"value": "application/activity+json"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"crons": [{
|
|
"path": "/send-note",
|
|
"schedule": "*/5 * * * *"
|
|
}]
|
|
}
|