binserve – a fast static web server in a single binary ↦
This web server for static assets is “blazing fast” and executable with a single binary, but what excites me about it is the simplistic, singular config file: binserve.json
{
"directory_listing": false,
"enable_logging": true,
"error_pages": {
"404": "404.html"
},
"follow_symlinks": false,
"routes": {
"/": "index.html",
"/example": "example.html"
},
"server": {
"host": "127.0.0.1",
"port": 1337
},
"static_directory": "static",
"template_variables": {
"load_static": "/static/",
"name": "Binserve"
}
}
Discussion
Sign in or Join to comment or subscribe