I'm trying to add some functions to the nginx-adapter.I found that the rewrite of nginx-adapter seems not to support regular expressions
In nginx,config like :
location ^~ /api {
rewrite ^/api(/.*)$ $1 break;
proxy_pass http://127.0.0.1:8000;
}
It should be write :
rewriteHandler := Rewrite{
PathRegexp: []*regexReplacer{
{
Find: "^/api(/.*)$",
Replace: "$1",
},
},
}
But regexReplacer can not be use in nginx-adapter. What should I do?