docs: update README and add example configuration files

This commit is contained in:
danielvici123
2026-06-08 21:27:16 +02:00
parent 922b7170a4
commit d778a5d37e
3 changed files with 46 additions and 1 deletions

25
config.json.example Normal file
View File

@@ -0,0 +1,25 @@
{
"host": "0.0.0.0",
"port": 3000,
"routes": [
{
"path": "/",
"response_file": "response.json",
"status_code": 200
},
{
"path": "/api/test",
"response_file": "response.json",
"status_code": 201
}
],
"masking": {
"enabled": true,
"headers": ["authorization", "x-api-key", "cookie"]
},
"tls": {
"enabled": false,
"cert_path": "cert.pem",
"key_path": "key.pem"
}
}