1.1.1 • Published 2 years ago
@stu43005/his-test-proxy v1.1.1
his-proxy
Install
Use npm:
npm i -g @stu43005/his-test-proxy
Usage
his-proxy
Options:
-p, --port Set server listen port [number] [default: 3000]
-u, --upstream Set upstream url
[string] [default: "https://his-alpha.cmuh.org.tw"]
-c, --config Provide a path to proxy config file (.json, .js) [string]
-v, --verbose Make the operation more talkative [boolean] [default: false]
-V, --version Show version number [boolean]
-h, --help Show help [boolean]
Examples:
his-proxy -c ./proxy.conf.json Use custom config
Config example
{
// 預設
"/web": "src",
// 可設定多個本地路徑
"/web": [
"MatStockManager/src",
"MatStockPurchaseManager/src"
],
// 測試本地 webapi
"/webapi/sample": "http://localhost:3001"
}