2023-10-08 07:35:17 +02:00
|
|
|
{
|
|
|
|
"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": "/(.+)/$",
|
|
|
|
"destination": "/$1/index.html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": "/flear",
|
|
|
|
"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 * * * *"
|
|
|
|
}]
|
|
|
|
}
|