Skip to content

Commit a8eb4a7

Browse files
committed
feat: set subdomain default to false
- ref: coder#419
1 parent 90d54c8 commit a8eb4a7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ module "claude-code" {
2222
> [!WARNING]
2323
> **Security Notice**: This module uses the `--dangerously-skip-permissions` flag when running Claude Code tasks. This flag bypasses standard permission checks and allows Claude Code broader access to your system than normally permitted. While this enables more functionality, it also means Claude Code can potentially execute commands with the same privileges as the user running it. Use this module _only_ in trusted environments and be aware of the security implications.
2424
25+
> [!TIP]
26+
> 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.
27+
2528
## Prerequisites
2629

2730
- An **Anthropic API key** is required for tasks. You can get one from the [Anthropic Console](https://console.anthropic.com/dashboard).

registry/coder/modules/claude-code/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ variable "ai_prompt" {
9898
variable "subdomain" {
9999
type = bool
100100
description = "Whether to use a subdomain for AgentAPI."
101-
default = true
101+
default = false
102102
}
103103

104104

0 commit comments

Comments
 (0)