C
Coder.com•2y ago
SpraY

How to use experimental port sharing

I am currently running latest coder-preview image and have this set as environment variable for Coder instance:
environment:
CODER_EXPERIMENTAL: "true"
environment:
CODER_EXPERIMENTAL: "true"
The issue is that I do not see such options as in an image
No description
Solution:
It's CODER_EXPERIMENTS: "shared-ports"
Jump to solution
14 Replies
Codercord
Codercord•2y ago
<#1235514942384246834>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Solution
matifali
matifali•2y ago
It's CODER_EXPERIMENTS: "shared-ports"
matifali
matifali•2y ago
Experiment names should be explicitly defined
SpraY
SpraYOP•2y ago
That fixed it, but now I am not really sure why Public is not allowed when it's enabled in the settings
No description
No description
matifali
matifali•2y ago
Do you have an enterprise license? It can only be controlled on an enterprise
SpraY
SpraYOP•2y ago
Oh, I assumed you required enterprise license when you need to control the maximum allowed and not the option to set the workspace level to public
matifali
matifali•2y ago
Hey @kirby could help clear the confusion here? Thank you 🙂
Stephen
Stephen•2y ago
I am assuming you didn't mean to @me and instead the coder team member Steven!
matifali
matifali•2y ago
Yes sorry :/
Stephen
Stephen•2y ago
Hey let me quickly check with engineering and i’ll get back to you here. You should be able to use all sharing levels on an OSS deployment. This may be a bug
Stephen
Stephen•2y ago
This was a bug we resolved on March 11th: https://github.com/coder/coder/issues/12480
GitHub
Can't select public sharing level for shared port · Issue #12480 ...
Maximum sharing level on the template is set to "Public" but it can't selected in the UI for a given workspace. The public option is not disabled in the dropdown, but isn't clicka...
matifali
matifali•2y ago
Thanks. This was fixed in https://github.com/coder/coder/pull/12484 which should be available in versions >=2.9.0 Whats your Coder version?
SpraY
SpraYOP•2y ago
The version is this one
No description

Did you find this page helpful?