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:55:56 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"has": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
2023-10-13 22:24:42 +02:00
|
|
|
"value": "application/activity\\+json"
|
2023-10-13 21:55:56 +02:00
|
|
|
}
|
|
|
|
],
|
2023-10-13 22:24:42 +02:00
|
|
|
"destination": "/$1/$2/status.ajson"
|
2023-10-13 21:55:56 +02:00
|
|
|
},
|
2023-10-14 01:09:42 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"has": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"destination": "/$1/$2/status.ajson"
|
|
|
|
},
|
2023-10-13 22:28:04 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"missing": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/activity\\+json"
|
2023-10-14 01:09:42 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/json"
|
2023-10-13 22:28:04 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"destination": "/$1/$2/status.html"
|
|
|
|
},
|
2023-10-13 21:22:50 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/activity",
|
|
|
|
"destination": "/$1/$2/activity.ajson"
|
|
|
|
},
|
2023-10-14 02:01:49 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/status",
|
|
|
|
"destination": "/$1/$2/status.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": [
|
2023-10-17 19:03:53 +02:00
|
|
|
{
|
2023-10-17 19:03:53 +02:00
|
|
|
"source": "(.*)",
|
2023-10-17 19:03:53 +02:00
|
|
|
"headers": [
|
2023-10-17 19:03:53 +02:00
|
|
|
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
|
|
|
|
{ "key": "Access-Control-Allow-Origin", "value": "*" },
|
|
|
|
{ "key": "Access-Control-Allow-Methods", "value": "*" },
|
|
|
|
{ "key": "Access-Control-Expose-Headers", "value": "*" },
|
|
|
|
{ "key": "Access-Control-Expose-Headers", "value": "*" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": "/",
|
|
|
|
"headers": [
|
|
|
|
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
|
|
|
|
{ "key": "Access-Control-Allow-Origin", "value": "*" },
|
|
|
|
{ "key": "Access-Control-Allow-Methods", "value": "*" },
|
|
|
|
{ "key": "Access-Control-Expose-Headers", "value": "*" },
|
|
|
|
{ "key": "Access-Control-Allow-Headers", "value": "*" }
|
2023-10-17 19:03:53 +02:00
|
|
|
]
|
|
|
|
},
|
2023-10-14 01:23:55 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"has": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/activity\\+json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
|
|
|
"value": "application/activity+json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"has": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
2023-10-14 01:37:55 +02:00
|
|
|
"value": "application/activity+json"
|
2023-10-14 01:23:55 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/",
|
|
|
|
"missing": [
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/activity\\+json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "header",
|
|
|
|
"key": "Accept",
|
|
|
|
"value": "application/json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
|
|
|
"value": "text/html"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-10-14 02:01:49 +02:00
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/activity",
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
|
|
|
"value": "application/activity+json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"source": "/([^/]*)/(.*)/status",
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
|
|
|
"value": "application/activity+json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-10-08 07:35:17 +02:00
|
|
|
{
|
|
|
|
"source": "/(.*).ajson",
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "content-type",
|
|
|
|
"value": "application/activity+json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"crons": [{
|
|
|
|
"path": "/send-note",
|
|
|
|
"schedule": "*/5 * * * *"
|
|
|
|
}]
|
|
|
|
}
|