-
Notifications
You must be signed in to change notification settings - Fork 59
fix(registry/modules/claude-code): default subdomain to false #419
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR changes the default configuration for the claude-code module to use path-based routing instead of subdomain-based routing, making it more accessible for users without wildcard subdomain setups.
- Changes the default value of the
subdomain
variable fromtrue
tofalse
- Updates test logging to include the new
AGENTAPI_CHAT_BASE_PATH
environment variable - Adds comprehensive test coverage for both subdomain configurations
- Updates documentation to explain the default behavior and recommend subdomain setup for production
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
main.tf | Changes default subdomain variable from true to false |
testdata/agentapi-mock.js | Updates logging to include AGENTAPI_CHAT_BASE_PATH environment variable |
main.test.ts | Adds test coverage for subdomain behavior and imports missing it function |
README.md | Adds troubleshooting note about default path-based configuration |
❌ Version Bump Validation FailedBump Type: Module versions need to be updated but haven't been bumped yet. Required Actions:
Script Output:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Cian. Looks good to me. ALso its non-breaking as path-based works everywhere.
@@ -114,4 +114,6 @@ module "claude-code" { | |||
|
|||
## Troubleshooting | |||
|
|||
By default, this module is configured to run the embedded chat interface as a path-based application. In production, we recommend that you configure a [wildcard access URL](https://coder.com/docs/admin/setup#wildcard-access-url) and set `subdomain = true`. See [here](https://coder.com/docs/tutorials/best-practices/security-best-practices#disable-path-based-apps) for more details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be a [!TIP]
or [!NOTE]
in first section of README.md instead of here.
cc: @35C4n0r as you are working on a refactor please rebase when this is merged. |
I'll also add this change to my PR. |
Relates to coder/coder#18779
By default, we set
subdomain = true
. Most folks testing this out don't have a wildcard subdomain setup. This switches to path-based behaviour by default and adds a note to the troubleshooting section.Testing notes below: