Donal McBreen
2bcb313590
Fix typo: host -> more
2025-06-19 14:17:16 +01:00
Donal McBreen
e61d96d154
Update custom cert docs
...
Remove ssl: ..., reword some of the docs and ensure the formatting is
correct.
2025-06-18 11:13:07 +01:00
Donal McBreen
0656e02375
Doc update from @acidtib in https://github.com/basecamp/kamal-site/pull/174
2025-06-17 15:42:15 +01:00
Donal McBreen
aed77a78fb
Formatting fixes for docs
2025-06-17 15:34:27 +01:00
Donal McBreen
8a7260d1e9
Merge pull request #1531 from acidtib/feat/custom-ssl
...
feat: Add support for custom certificates
2025-06-17 09:25:15 +01:00
Donal McBreen
89c56910c9
Merge pull request #1551 from ACPK/kamal-proxy-path-prefix
...
Add support for kamal-proxy's path-prefix
2025-06-16 11:07:23 +01:00
Dainel Vera
99f763d742
Merge branch 'main' into feat/custom-ssl
2025-05-19 15:38:33 -06:00
Donal McBreen
7b1439c3c6
Update per-role proxy docs
...
Clarify that proxy: true/proxy: false only belong in the role config,
not at the root level.
2025-05-15 10:14:52 +01:00
Andrew Kelley
1331e7b9c7
Added path_prefix and strip_path_prefix
2025-05-13 19:31:54 -04:00
acidtib
1f847299c0
improve custom SSL certificate documentation
2025-04-28 13:33:03 -06:00
acidtib
a525d45b4d
allow defining certificates directly within ssl hash instead of at the proxy root level
2025-04-28 00:34:24 -06:00
acidtib
045410368d
add support for custom certificates
2025-04-26 01:03:15 -06:00
Kevin McConnell
d4ab010b01
Add ssl_redirect proxy option
2025-03-12 11:11:14 +00:00
Donal McBreen
77c202ebaf
Highlight ssl/forward_headers behaviour
...
Pulled in from: https://github.com/basecamp/kamal-site/pull/141
2024-12-13 12:20:05 +00:00
Dmytro Shteflyuk
67ad7662ab
Simplified proxy hosts validation and documentation, similar to accessory config
2024-09-29 20:56:23 -04:00
Dmytro Shteflyuk
8df7d7d92d
Do not allow both host and hosts for proxy configuration
2024-09-29 20:43:44 -04:00
Dmytro Shteflyuk
1d48a0fb0a
Allow specifying multiple hosts for kamal proxy via an array
2024-09-29 20:43:44 -04:00
Dmytro Shteflyuk
994a8faf6b
Re-applied corrections to configuration YAML files that were merged directly into kamal-site
2024-09-29 15:33:06 -04:00
Donal McBreen
6df169a4fb
Doc updates
2024-09-20 15:27:10 +01:00
Donal McBreen
a6a48c456c
Response timeout should be a number
...
Kamal will append the `s` for the duration when talking to kamal-proxy
so no need to have it in the config.
2024-09-20 09:26:06 +01:00
Donal McBreen
fd0cdc1ca1
All role specific proxy configuration
...
By default only the primary role runs the proxy. To disable the proxy
for that role, you can set `proxy: false` under it.
For other roles they default to not running the proxy, but you can
enable it by setting `proxy: true` for the role, or alternatively
setting a proxy configuration.
The proxy configuration will be merged into the root proxy configuration.
2024-09-18 17:25:35 +01:00
Donal McBreen
8bcd896242
Simplified deploy/drain timeouts
...
Remove `stop_wait_time` and `readiness_timeout` from the root config
and remove `deploy_timeout` and `drain_timeout` from the proxy config.
Instead we'll just have `deploy_timeout` and `drain_timeout` in the
root config.
For roles that run the proxy, they are passed to the kamal-proxy deploy
command. Once that returns we can assume the container is ready to
shut down.
For other roles, we'll use the `deploy_timeout` when polling the
container to see if it is ready and the `drain_timeout` when stopping
the container.
2024-09-18 15:08:08 +01:00
Donal McBreen
34effef70a
Update proxy and docs for Kamal 2.0/kamal-proxy 0.3.0
...
Update to kamal-proxy 0.3.0 and improve docs making sure they are in
sync with that version.
2024-09-18 14:00:43 +01:00
Donal McBreen
0fe6a17a91
Need a duration string for the response timeout
...
Add `s` as the timeout is a duration.
2024-09-17 13:23:15 +01:00
Donal McBreen
267b526438
Switch proxy/hosts to proxy/host
...
The proxy only supports a single host per app for nowm so make the
config match that.
2024-09-16 20:45:09 +01:00
Donal McBreen
2125327d54
proxy/host -> proxy/hosts
2024-09-16 16:44:58 +01:00
Donal McBreen
f4d309c5cc
Rip out Traefik
2024-09-16 16:44:55 +01:00
Donal McBreen
dcd4778dd9
Port -> app_port
2024-09-16 16:44:41 +01:00
Donal McBreen
6f2eaed398
Work out the host and port for the container
...
Avoid docker inspect:
1. Use the container ID as the host
2. Configure the port, default to 3000
2024-09-16 16:44:41 +01:00
Donal McBreen
e9d480b514
Add the proxy/ssl config and pass on to kamal-proxy
2024-09-16 16:44:41 +01:00
Donal McBreen
55756fa6f3
Set request and response headers
2024-09-16 16:44:21 +01:00
Donal McBreen
fe0c656de5
Split buffer requests/responses
2024-09-16 16:44:21 +01:00
Donal McBreen
418d8045d8
Add forward headers support
2024-09-16 16:44:21 +01:00
Donal McBreen
d63ff8f251
Set extra fields
2024-09-16 16:44:21 +01:00
Donal McBreen
eab717e0cf
Add kamal-proxy in experimental mode
...
The proxy can be enabled via the config:
```
proxy:
enabled: true
hosts:
- 10.0.0.1
- 10.0.0.2
```
This will enable the proxy and cause it to be run on the hosts listed
under `hosts`, after running `kamal proxy reboot`.
Enabling the proxy disables `kamal traefik` commands and replaces them
with `kamal proxy` ones. However only the marked hosts will run the
kamal-proxy container, the rest will run Traefik as before.
2024-09-16 16:44:19 +01:00