You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds the ability to route multiple paths to a service. As with the
multiple host routing, specify multiple paths either by comma-delimiting
them or by using the flag multiple times:
kamal-proxy deploy myservice --path-prefix=/app,/api ...
deployCommand.cmd.Flags().StringVar(&deployCommand.args.TargetURL, "target", "", "Target host to deploy")
30
31
deployCommand.cmd.Flags().StringSliceVar(&deployCommand.args.Hosts, "host", []string{}, "Host(s) to serve this target on (empty for wildcard)")
31
-
deployCommand.cmd.Flags().StringVar(&deployCommand.args.PathPrefix, "path-prefix", "", "Deploy the service below the specified path")
32
+
deployCommand.cmd.Flags().StringSliceVar(&deployCommand.args.PathPrefixes, "path-prefix", []string{}, "Deploy the service below the specified path(s)")
32
33
deployCommand.cmd.Flags().BoolVar(&deployCommand.args.ServiceOptions.StripPrefix, "strip-path-prefix", true, "With --path-prefix, strip prefix from request before forwarding")
33
34
34
35
deployCommand.cmd.Flags().BoolVar(&deployCommand.args.ServiceOptions.TLSEnabled, "tls", false, "Configure TLS for this target (requires a non-empty host)")
0 commit comments