2023-10-08 07:35:17 +02:00
|
|
|
{
|
|
|
|
"public": true,
|
|
|
|
"framework": "hugo",
|
|
|
|
"redirects": [
|
|
|
|
{
|
|
|
|
"source": "/amp/(.+)/",
|
|
|
|
"destination": "/$1/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": "/atom.xml",
|
|
|
|
"destination": "/index.xml"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": "/activitypub-support-added/",
|
|
|
|
"destination": "/news/activitypub-support-added/"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rewrites": [
|
2023-10-13 21:22:50 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
2023-10-13 22:08:59 +02:00
|
|
|
"missing": [
|
2023-10-13 21:22:50 +02:00
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
2023-10-13 22:08:59 +02:00
|
|
|
"value": "text/html"
|
2023-10-13 21:22:50 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"destination": "/$1/$2/status.ajson"
|
|
|
|
},
|
2023-10-13 21:55:56 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"has": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "text/html"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"destination": "/$1/$2/status.html"
|
|
|
|
},
|
2023-10-13 21:22:50 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/activity",
|
|
|
|
"destination": "/$1/$2/activity.ajson"
|
|
|
|
},
|
2023-10-08 07:35:17 +02:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
2023-10-11 07:08:12 +02:00
|
|
|
"source": "/fedipage",
|
2023-10-08 07:35:17 +02:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
],
|
2023-10-09 16:45:35 +02:00
|
|
|
"functions": {
|
2023-10-09 17:19:40 +02:00
|
|
|
"**/*": {
|
|
|
|
"maxDuration": 300
|
2023-10-09 17:02:50 +02:00
|
|
|
}
|
2023-10-09 16:48:49 +02:00
|
|
|
},
|
2023-10-08 07:35:17 +02:00
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"source": "/(.*).ajson",
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
|
|
|
"value": "application/activity+json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"crons": [{
|
|
|
|
"path": "/send-note",
|
|
|
|
"schedule": "*/5 * * * *"
|
|
|
|
}]
|
|
|
|
}
|