summaryrefslogtreecommitdiffhomepage
path: root/example.conf.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'example.conf.hcl')
-rw-r--r--example.conf.hcl41
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
+ }
+ }
+}