mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
64 lines
1.2 KiB
JSON
64 lines
1.2 KiB
JSON
{
|
|
"rewrites": [
|
|
{
|
|
"source": "/opensearch.xml",
|
|
"destination": "/opensearch.xml"
|
|
},
|
|
{
|
|
"source": "/media/(.*)",
|
|
"has": [
|
|
{
|
|
"type": "header",
|
|
"key": "x-rewrite",
|
|
"value": "true"
|
|
}
|
|
],
|
|
"destination": "https://meta.pstream.org/media/$1"
|
|
},
|
|
{
|
|
"source": "/(.*)",
|
|
"destination": "/"
|
|
}
|
|
],
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "DENY"
|
|
},
|
|
{
|
|
"key": "X-XSS-Protection",
|
|
"value": "1; mode=block"
|
|
},
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=0, s-maxage=0, must-revalidate"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/manifest.webmanifest",
|
|
"headers": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/manifest+json"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/assets/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, s-maxage=31536000, immutable"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|