basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
10.6k stars 408 forks source link

Allow specifying multiple hosts for kamal-proxy via an array #1000

Closed kpumuk closed 3 days ago

kpumuk commented 5 days ago

Currently, the way to specify multiple hosts for kamal-proxy is via the comma-separated value passed to host argument:

host: foo.example.com,bar.example.com

This leads to frustration when users accidentally enter hosts via more idiomatic array. This MR allows to use both host and hosts, where the latter accepts an array.

hosts:
  - foo.example.com
  - bar.example.com

[!NOTE]
This matches the approach taken for accessory hosts: https://kamal-deploy.org/docs/configuration/accessories/#accessory-hosts

Edit: Example of such feedback here.