From efc3e31c9c113d4a7a8b2d4397878ee91d739131 Mon Sep 17 00:00:00 2001 From: Paul Butler Date: Wed, 18 Oct 2023 15:25:57 -0400 Subject: [PATCH] Document path routing in config --- sample-config/plane-config/drone.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sample-config/plane-config/drone.toml b/sample-config/plane-config/drone.toml index b83be24df..74e4e0ea3 100644 --- a/sample-config/plane-config/drone.toml +++ b/sample-config/plane-config/drone.toml @@ -67,6 +67,15 @@ connection = { socket = "/var/run/docker.sock" } # IP to listen for connections on. bind_ip = "0.0.0.0" http_port = 8080 + +# Enable path-based routing, where the proxy detects the backend name +# from the path instead of the hostname. This is useful when running +# locally for development, because you don't have to set up a DNS +# server. +# +# To access the backend abc123, instead of the usual url +# http://abc123.plane.test/some-path/, use the URL +# http://localhost:8080/_plane_backend=abc123/some-path/. allow_path_routing = true # [cert]