Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Conversation

@angrycub
Copy link

@angrycub angrycub commented May 5, 2025

This pull request introduces several updates to enhance the KasmVNC module, including improved configuration flexibility, better error handling, and support for path-based sharing. Key changes include the addition of a subdomain variable, restructuring of the Terraform configuration, and significant updates to the run.sh script for better logging and robustness.

Enhancements to Terraform Configuration:

  • Added a new subdomain variable in variables.tf to enable or disable subdomain support for KasmVNC.
  • Replaced inline variable definitions in main.tf with a locals block for cleaner and more maintainable code.

Improvements to the run.sh Script:

  • Introduced utility functions (info, warn, error, debug) for consistent and user-friendly logging.
  • Enhanced error handling by replacing plain echo statements with the new error function for critical failures. [1] [2] [3]
  • Added a polling mechanism to wait for the KasmVNC server to start, improving reliability during initialization.

Support for Path-Based Sharing:

  • Implemented a new HTML bounce page (path_vnc.html) to support path-based sharing when subdomains are disabled.
  • Added logic in run.sh to patch KasmVNC webserver files for path-based sharing when subdomain is set to false.

Documentation Updates:

  • Updated README.md to reflect the new subdomain variable and list supported desktop environments.

These changes collectively improve the usability, configurability, and robustness of the KasmVNC module.

@angrycub angrycub changed the title feat: Support path sharing for KasmVNC module feat: support path sharing for KasmVNC module May 5, 2025
@matifali matifali requested a review from DevelopmentCats May 5, 2025 23:38
Copy link
Member

Choose a reason for hiding this comment

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

Could you bump the version in README.md by 1 minor version? Thanks.

@matifali
Copy link
Member

matifali commented May 9, 2025

We are moving to https://github.com/coder/regitsry. Please move your PR there. Thanks
More context in #469

@matifali matifali closed this May 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants