Skip to content

Commit

Permalink
the on-demand URL must contain the http scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Nov 1, 2024
1 parent 46d3d38 commit ec013ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ In addition of the automatic TLS functionality, Kamal Proxy can also dynamically
from any host allowed by an external API endpoint of your choice.
This avoids hard-coding hosts in the configuration, especially when you don't know the hosts at the startup.

kamal-proxy deploy service1 --target web-1:3000 --host "" --tls --tls-on-demand-url=localhost:4567/check
kamal-proxy deploy service1 --target web-1:3000 --host "" --tls --tls-on-demand-url="http://localhost:4567/check"

The On-demand URL endpoint will have to answer a 200 HTTP status code.
Kamal Proxy will call the on-demand URL with a query string of `?host=` containing the host received by Kamal Proxy.
Expand Down

0 comments on commit ec013ea

Please sign in to comment.