Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Traefik with kamal-proxy #940

Merged
merged 43 commits into from
Sep 17, 2024
Merged

Replace Traefik with kamal-proxy #940

merged 43 commits into from
Sep 17, 2024

Commits on Sep 16, 2024

  1. 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.
    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    eab717e View commit details
    Browse the repository at this point in the history
  2. Set extra fields

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    d63ff8f View commit details
    Browse the repository at this point in the history
  3. Add forward headers support

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    418d804 View commit details
    Browse the repository at this point in the history
  4. Split buffer requests/responses

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    fe0c656 View commit details
    Browse the repository at this point in the history
  5. Set request and response headers

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    55756fa View commit details
    Browse the repository at this point in the history
  6. Read buffer not buffering

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    53903dd View commit details
    Browse the repository at this point in the history
  7. Fix merge error

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    bd65586 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    13bdf50 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    63ebeda View commit details
    Browse the repository at this point in the history
  10. Add proxy upgrade command

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f347ef7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9c2d5f8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2056351 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b33c999 View commit details
    Browse the repository at this point in the history
  14. Fix tests

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    2fdc59a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e9d480b View commit details
    Browse the repository at this point in the history
  16. 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
    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    6f2eaed View commit details
    Browse the repository at this point in the history
  17. Port -> app_port

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    dcd4778 View commit details
    Browse the repository at this point in the history
  18. Drop run_directory configuration option

    We need to drop to be fixed so multiple applications put the config in
    the same place.
    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    27a7b33 View commit details
    Browse the repository at this point in the history
  19. Map kamal proxy config into .kamal/proxy/config

    This will allow us to share files with the proxy via the host.
    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    5bca801 View commit details
    Browse the repository at this point in the history
  20. Rip out Traefik

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f4d309c View commit details
    Browse the repository at this point in the history
  21. proxy/host -> proxy/hosts

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    2125327 View commit details
    Browse the repository at this point in the history
  22. Remove stray exit!

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    ccb7424 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    a40b644 View commit details
    Browse the repository at this point in the history
  24. No need to wait_for_healthy

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    e1016b2 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    33834a2 View commit details
    Browse the repository at this point in the history
  26. Fix up integration app_test.rb

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    1093391 View commit details
    Browse the repository at this point in the history
  27. No need for run_id

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    cb73c73 View commit details
    Browse the repository at this point in the history
  28. Move all files on the host under a common directory

    This will make running kamal remove simpler, we can just clean up that
    directory.
    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    c21757f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    d7d6fa3 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    b8972a6 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    35fe9c1 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    24031fe View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d2672c7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    8b965b0 View commit details
    Browse the repository at this point in the history
  35. Not experimental

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    3c39086 View commit details
    Browse the repository at this point in the history
  36. Rename service -> app directory

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    a84ee63 View commit details
    Browse the repository at this point in the history
  37. Fix command description

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    bf91d6c View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    a316e51 View commit details
    Browse the repository at this point in the history
  39. Fix default log header tests

    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    e8ff233 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    7f31510 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    6c51e59 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    1f72173 View commit details
    Browse the repository at this point in the history
  43. Switch proxy/hosts to proxy/host

    The proxy only supports a single host per app for nowm so make the
    config match that.
    djmb committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    267b526 View commit details
    Browse the repository at this point in the history