Skip to content
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

feat(remote access): Auto detect URL scheme when opening url based on name #423

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

reubenmiller
Copy link
Owner

@reubenmiller reubenmiller commented Jan 20, 2025

Align with the convention used by the https://github.com/Cumulocity-IoT/cumulocity-remote-access-cloud-http-proxy project when opening the local proxy's endpoint in the browser. If the remote access's configuration starts with https:, then the browser will be opened to the https address (instead of http). Otherwise the http address will be used.

Examples

# Open browser and auto detect either http or https
c8y remoteaccess server --device 12345 --configuration "*rugpi*" --browser

# Open browser using http URL (auto detection will be disabled)
c8y remoteaccess server --device 12345 --configuration "*rugpi*" --browser --scheme http

# Open browser using https URL (auto detection will be disabled)
c8y remoteaccess server --device 12345 --configuration "*rugpi*" --browser --scheme https

Resolves #420

@reubenmiller reubenmiller merged commit af1c9b7 into v2 Jan 22, 2025
4 checks passed
@reubenmiller reubenmiller deleted the feat-remote-access-server-open-scheme branch January 22, 2025 08:34
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.

c8y remoteaccess server support for https
1 participant