mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
213 lines
4.7 KiB
JSON
213 lines
4.7 KiB
JSON
{
|
|
"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": [
|
|
{
|
|
"source": "/([^/]*)/(.*)/",
|
|
"has": [
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/activity\\+json"
|
|
}
|
|
],
|
|
"destination": "/$1/$2/status.ajson"
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/",
|
|
"has": [
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"destination": "/$1/$2/status.ajson"
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/",
|
|
"missing": [
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/activity\\+json"
|
|
},
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"destination": "/$1/$2/status.html"
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/activity",
|
|
"destination": "/$1/$2/activity.ajson"
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/status",
|
|
"destination": "/$1/$2/status.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": "(.*)",
|
|
"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-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": "*" }
|
|
]
|
|
},
|
|
{
|
|
"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",
|
|
"value": "application/activity+json"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/",
|
|
"missing": [
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/activity\\+json"
|
|
},
|
|
{
|
|
"type": "header",
|
|
"key": "Accept",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"headers": [
|
|
{
|
|
"key": "content-type",
|
|
"value": "text/html"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/activity",
|
|
"headers": [
|
|
{
|
|
"key": "content-type",
|
|
"value": "application/activity+json"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/([^/]*)/(.*)/status",
|
|
"headers": [
|
|
{
|
|
"key": "content-type",
|
|
"value": "application/activity+json"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/(.*).ajson",
|
|
"headers": [
|
|
{
|
|
"key": "content-type",
|
|
"value": "application/activity+json"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"crons": [{
|
|
"path": "/send-note",
|
|
"schedule": "*/5 * * * *"
|
|
}]
|
|
}
|