diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-10-09 00:19:42 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-10-09 00:19:42 +0900 |
| commit | d137a764d050e3d5296da2830a32f6d83bdb364f (patch) | |
| tree | bee59ab913cd7fc03c8f1209aaa12d012dafe161 /conf.example.hcl | |
| parent | 6f97769e4fc893e7607652e3cbfcf5698e2256f4 (diff) | |
| download | mioproxy-d137a764d050e3d5296da2830a32f6d83bdb364f.tar.gz mioproxy-d137a764d050e3d5296da2830a32f6d83bdb364f.tar.zst mioproxy-d137a764d050e3d5296da2830a32f6d83bdb364f.zip | |
support path-based proxy
Diffstat (limited to 'conf.example.hcl')
| -rw-r--r-- | conf.example.hcl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/conf.example.hcl b/conf.example.hcl index 8f1a56c..dfe18f8 100644 --- a/conf.example.hcl +++ b/conf.example.hcl @@ -11,4 +11,25 @@ server http { port = 8001 } } + + proxy b { + from { + path = "/b/" + } + to { + host = "127.0.0.1" + port = 8002 + } + } + + proxy c { + from { + host = "c.localhost" + path = "/c/" + } + to { + host = "127.0.0.1" + port = 8003 + } + } } |
