Skip to content

Commit 608bd0b

Browse files
rubysclaude
andcommitted
Remove undocumented 'proxies' configuration option
Simplify configuration by removing the legacy 'proxies' field from the YAML routes structure. Users should use 'reverse_proxies' instead, which provides the same functionality plus method exclusion support. This removes: - Proxies struct from YAML configuration - Processing loop for yamlConfig.Routes.Proxies Only 'reverse_proxies' is now supported, which was already the documented and recommended approach. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8130e45 commit 608bd0b

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

cmd/navigator/main.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,6 @@ type YAMLConfig struct {
275275
From string `yaml:"from"`
276276
To string `yaml:"to"`
277277
} `yaml:"rewrites"`
278-
Proxies []struct {
279-
Path string `yaml:"path"`
280-
Target string `yaml:"target"`
281-
Headers map[string]string `yaml:"headers"`
282-
} `yaml:"proxies"`
283278
FlyReplay []struct {
284279
Path string `yaml:"path"`
285280
Region string `yaml:"region"`
@@ -1475,15 +1470,6 @@ func ParseYAML(content []byte) (*Config, error) {
14751470
}
14761471
}
14771472

1478-
// Convert proxy routes
1479-
for _, proxy := range yamlConfig.Routes.Proxies {
1480-
config.ProxyRoutes[proxy.Path] = &ProxyRoute{
1481-
Pattern: proxy.Path,
1482-
ProxyPass: proxy.Target,
1483-
SetHeaders: proxy.Headers,
1484-
}
1485-
}
1486-
14871473
// Convert fly-replay routes
14881474
for _, flyReplay := range yamlConfig.Routes.FlyReplay {
14891475
if re, err := regexp.Compile(flyReplay.Path); err == nil {

0 commit comments

Comments
 (0)