This repository has been archived on 2024-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs-website/svrjs-config.json

47 lines
921 B
JSON
Raw Normal View History

2024-03-15 21:53:12 +01:00
{
"port": 3000,
"nonStandardCodes": [
{
"regex": "/^\\/((?:[^\\/?#]+\\/)*[^\\/?#]+)\\.htm($|[?#].*)/",
"location": "/$1$2",
"scode": 301
},
{
"regex": "/^\\/(.*)\\/($|[?#].*)/",
"location": "/$1$2",
"scode": 302
}
],
"rewriteMap": [
{
"definingRegex": "/(\\/[^\\/.]+)\\.html?(?:$|[?#])/",
"replacements": [
{
"regex": "/(\\/[^\\/.]+)\\.html?($|[?#].*)/",
"replacement": "$1.htm$2"
}
]
},
{
"definingRegex": "/(\\/[^\\/.]+)(?:$|[?#])/",
"replacements": [
{
"regex": "/(\\/[^\\/.]+)($|[?#].*)/",
"replacement": "$1.html$2"
}
]
}
],
"dontCompress": [
"/.*\\.ipxe$/",
"/.*\\.img$/",
"/.*\\.iso$/",
"/.*\\.gz$/",
"/.*\\.webp$/",
"/.*\\.jpg$/",
"/.*\\.png$/",
"/.*\\.woff$/"
],
"wwwroot": "../public"
}