Skip to content

Add OpenClaw proxy handling and redirection to Caddyfile#11

Open
namelessman wants to merge 13 commits into
mainfrom
dev/openclaw_0623
Open

Add OpenClaw proxy handling and redirection to Caddyfile#11
namelessman wants to merge 13 commits into
mainfrom
dev/openclaw_0623

Conversation

@namelessman

Copy link
Copy Markdown

This pull request updates the Caddyfile to add support for proxying requests to the openclaw service. The main changes involve routing and redirect logic to ensure requests are properly handled.

OpenClaw service routing:

  • Added a new route to match requests with the openclaw/ path prefix and proxy them to localhost:18789, stripping the prefix before forwarding.
  • Added a redirect rule for requests ending in openclaw (without a trailing slash) to redirect them to openclaw/ with a 308 status code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants