Skip to content

feat: add path-based sharing for kasm #115

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

Merged
merged 15 commits into from
May 30, 2025
Merged

feat: add path-based sharing for kasm #115

merged 15 commits into from
May 30, 2025

Conversation

angrycub
Copy link
Contributor

No description provided.

@angrycub angrycub enabled auto-merge (squash) May 22, 2025 22:14
@angrycub angrycub requested a review from phorcys420 May 22, 2025 22:14
@angrycub angrycub self-assigned this May 22, 2025
@matifali matifali added the version:minor Add to PRs requiring a minor version upgrade label May 23, 2025
@matifali matifali mentioned this pull request May 23, 2025
@matifali matifali requested a review from DevelopmentCats May 29, 2025 16:57
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM. Left some comments but nothing blocking.

agent_id = coder_agent.example.id
desktop_environment = "xfce"
subdomain = true
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
subdomain = true

We can drop as it's the default value.

Add a new example below with subdomain = false to share how they can use it without a subdomain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looked like we were using that to show all of the values. I can do a follow-up PR if that is "minimum config to start" and make a section for "Using the module with path-based sharing"

Copy link
Member

Choose a reason for hiding this comment

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

Don't understand, but probably it's needed for the path-based service to work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, this leverages javascript as a fast path rewrite to provide the configuration in a way that the vnc.html page can parse as a valid configuration, thus setting the websocket address to the proper path.

echo "ERROR: Failed to start KasmVNC server. Check full logs at /tmp/kasmvncserver.log"

set +e
vncserver -select-de "${DESKTOP_ENVIRONMENT}" -disableBasicAuth > "$VNC_LOG" 2>&1
Copy link
Member

Choose a reason for hiding this comment

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

Is dropping & at the end intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, vncserver forks all by itself if it successfully launches.

@angrycub angrycub merged commit c5a21e0 into main May 30, 2025
4 checks passed
@angrycub angrycub deleted the cv-kasm branch May 30, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version:minor Add to PRs requiring a minor version upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants