usage: corsica [-h] [--port port] [--host host] [--config config] root
Specifies port to host server on.
Specifies the hostname (e.g. 127.0.0.1) to host server on.
Path to corsica config file.
The origin path is defined as a regular expression.
Simple rewrites.
{
"rewrites": {
"/readme": "/readme.md",
"/license": "/license.md"
}
}
For more complex rules, you can use named groups. Reference the group name via pythons template variable syntax.
{
"rewrites": {
"/(?P<mdfiles>readme|license)": "/${mdfiles}.md",
"/readme|license)": "/${mdfiles}.md"
}
}