kservez

A simple static http server and proxy

Usage no npm install needed!

<script type="module">
  import kservez from 'https://cdn.skypack.dev/kservez';
</script>

README

kservez

A simple static http server and proxy

Configuration

./bin/kservez --port=7000 public ./bin/kservez

Example .kservezrc

{
    port: 5555,
    publicPath: "dist",
    "proxy": [
        {
            "protocol": "https:",
            "hostname": "jsonplaceholder.typicode.com",
            "prefix": "/todos"
        }
    ]
}

Configuration options:

  • ssl - [boolean]: toggles http/https with a self signed certificate