Skip to content

refactor: rename TLS_HOST_AUTO_DETECT to AUTO_TLS for clarity#28

Merged
hrntknr merged 1 commit intomainfrom
refactor/rename-tls-host-auto-detect-to-auto-tls
Aug 18, 2025
Merged

refactor: rename TLS_HOST_AUTO_DETECT to AUTO_TLS for clarity#28
hrntknr merged 1 commit intomainfrom
refactor/rename-tls-host-auto-detect-to-auto-tls

Conversation

@hrntknr
Copy link
Copy Markdown
Member

@hrntknr hrntknr commented Aug 18, 2025

Summary

Renamed TLS_HOST_AUTO_DETECT environment variable to AUTO_TLS for better clarity and consistency with the project's naming conventions.

Type of Change

  • refactor: A code change that neither fixes a bug nor adds a feature

Related Issues

- Rename environment variable TLS_HOST_AUTO_DETECT to AUTO_TLS
- Update CLI flag from --tls-host-auto-detect to --auto-tls
- Update function parameter names and error messages
- Update documentation in README.md

This change improves naming consistency and clarity of the TLS
configuration option.
Copilot AI review requested due to automatic review settings August 18, 2025 11:49
@hrntknr hrntknr merged commit 93839e2 into main Aug 18, 2025
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 renames the TLS_HOST_AUTO_DETECT environment variable to AUTO_TLS to improve clarity and align with the project's naming conventions. The change affects variable names, function parameters, and documentation while maintaining the same functionality.

  • Renamed tlsHostAutoDetect parameter to autoTLS in function signatures
  • Updated environment variable from TLS_HOST_AUTO_DETECT to AUTO_TLS
  • Updated documentation and error messages to reflect the new naming

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pkg/mcp-proxy/main.go Updated function parameter name and error message referencing the renamed variable
main.go Renamed variable, function parameter, and CLI flag to use the new naming convention
README.md Updated environment variable documentation to reflect the new AUTO_TLS name

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread README.md
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| `LISTEN` | No | Server listen address | `:80` |
| `TLS_LISTEN` | No | Address to listen on for TLS | `:443` |
| `AUTO_TLS` | No | Automatically setup TLS certificates from externalURL | `true` |
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description for AUTO_TLS should be consistent with the original description. The original was 'Automatically detect TLS host from externalURL' but this shows 'Automatically setup TLS certificates from externalURL'. Consider using the original description for consistency.

Suggested change
| `AUTO_TLS` | No | Automatically setup TLS certificates from externalURL | `true` |
| `AUTO_TLS` | No | Automatically detect TLS host from externalURL | `true` |

Copilot uses AI. Check for mistakes.
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