47 lines
921 B
JSON
47 lines
921 B
JSON
|
{
|
||
|
"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"
|
||
|
}
|