feat: add URL prefix(subpath) support (#31)

To adapt to situations such as working behind a reverse proxy dispatching query to different services by URL path prefix
This commit is contained in:
Shun Zi
2019-11-08 13:01:42 +00:00
committed by Henrique Dias
parent ab0334f036
commit 2971f7ed3d
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ func init() {
flags.String("key", "key.pem", "TLS key")
flags.StringP("address", "a", "0.0.0.0", "address to listen to")
flags.StringP("port", "p", "0", "port to listen to")
flags.StringP("prefix", "P", "/", "URL path prefix")
}
var rootCmd = &cobra.Command{