lazy-http
Version:
A simple web server that allows developers to serve static context
49 lines (40 loc) • 1.16 kB
JavaScript
module.exports = [
{
host: "127.0.0.1",
port: 443,
document_root: null,
ssl_check: true,
proxy_only: false,
rules: [
"proxy:local:pipe:/path/to/unix/socket",
"proxy:localhost:http:127.0.0.1:5080",
"proxy:localhost/:http:127.0.0.1:5081",
"proxy:localhost/res/:http:127.0.0.1:5082",
"proxy:127.0.0.1:https:www.google.com:443",
// "proxy:default:127.0.0.1:https:www.google.com:443",
"proxy:192.168.43.85:http:127.0.0.1:8088",
"cors:localhost:cors.sample.json",
"csp:localhost:csp.sample.js",
"mime:bjs:application/javascript"
]
},
{
host: "127.0.0.1",
port: 80,
document_root: null,
ssl_check: true,
proxy_only: false,
rules: [
"proxy:local:pipe:/path/to/unix/socket",
"proxy:localhost:http:127.0.0.1:5080",
"proxy:localhost/:http:127.0.0.1:5081",
"proxy:localhost/res/:http:127.0.0.1:5082",
"proxy:127.0.0.1:https:www.google.com:443",
// "proxy:default:127.0.0.1:https:www.google.com:443",
"proxy:192.168.43.85:http:127.0.0.1:8088",
"cors:localhost:cors.sample.json",
"csp:localhost:csp.sample.js",
"mime:bjs:application/javascript"
]
}
];