#Caddyfile

:7070 {
    # Handle paths directed to the backend
    handle_path /api/* {
        reverse_proxy backend-1:3000 backend-2:3000 {
            lb_policy round_robin
            fail_duration 30s
        }
    }
    # Handle all other paths for the frontend
    reverse_proxy frontend:3000
}