diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-10-09 08:42:33 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-10-09 08:42:33 +0900 |
| commit | ceb264cb65f4a62531e11b3ce666f931074b778a (patch) | |
| tree | b727df20ca1c6ef35c4dcea2798f29e19a2035c9 /example.conf.hcl | |
| parent | d137a764d050e3d5296da2830a32f6d83bdb364f (diff) | |
| download | mioproxy-ceb264cb65f4a62531e11b3ce666f931074b778a.tar.gz mioproxy-ceb264cb65f4a62531e11b3ce666f931074b778a.tar.zst mioproxy-ceb264cb65f4a62531e11b3ce666f931074b778a.zip | |
support basic authv0.2.0
Diffstat (limited to 'example.conf.hcl')
| -rw-r--r-- | example.conf.hcl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/example.conf.hcl b/example.conf.hcl new file mode 100644 index 0000000..e6f9d51 --- /dev/null +++ b/example.conf.hcl @@ -0,0 +1,41 @@ +server http { + host = "127.0.0.1" + port = 8000 + + proxy a { + from { + host = "a.localhost" + } + to { + host = "127.0.0.1" + port = 8001 + } + } + + proxy b { + from { + path = "/b/" + } + to { + host = "127.0.0.1" + port = 8002 + } + auth basic { + realm = "basic auth b" + credential_file = "example.htpasswd" + # user: nsfisis + # password: password + } + } + + proxy c { + from { + host = "c.localhost" + path = "/c/" + } + to { + host = "127.0.0.1" + port = 8003 + } + } +} |
