Skip to content

Commit 51ebf0a

Browse files
committed
fmt
1 parent 72fe3ee commit 51ebf0a

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

docs/networking/port-forwarding.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,44 +91,64 @@ accessible by any user authenticated to the Coder deployment, and `public` -
9191
accessible by users outside of the Coder deployment.
9292

9393
<!--- TODO: Update this image to match the rest on the page -->
94+
9495
![Port forwarding from an app in the UI](../images/coderapp-port-forward.png)
9596

9697
### Accessing workspace ports
9798

98-
Another way to port forward in the dashboard is to use the "Open Ports" button to
99-
specify an arbitrary port. Coder will also detect if apps inside the workspace
100-
are listening on ports, and list them below the port input (this is only
101-
supported on Windows and Linux workspace agents).
99+
Another way to port forward in the dashboard is to use the "Open Ports" button
100+
to specify an arbitrary port. Coder will also detect if apps inside the
101+
workspace are listening on ports, and list them below the port input (this is
102+
only supported on Windows and Linux workspace agents).
102103

103104
![Port forwarding in the UI](../images/networking/listeningports.png)
104105

105106
#### Sharing ports
106107

107-
We allow developers to share ports as URLs, either with other authenticated coder users or publicly. Using the open ports interface, developers can assign a sharing levels that match our `coder_app`’s share option in [Coder terraform provider](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/app#share).
108+
We allow developers to share ports as URLs, either with other authenticated
109+
coder users or publicly. Using the open ports interface, developers can assign a
110+
sharing levels that match our `coder_app`’s share option in
111+
[Coder terraform provider](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/app#share).
108112

109-
- `owner` (Default): The implicit sharing level for all listening ports, only visible to the workspace owner
110-
- `authenticated`: Accessible by other authenticated Coder users on the same deployment.
113+
- `owner` (Default): The implicit sharing level for all listening ports, only
114+
visible to the workspace owner
115+
- `authenticated`: Accessible by other authenticated Coder users on the same
116+
deployment.
111117
- `public`: Accessible by any user with the associated URL.
112118

113-
Once a port is shared at either `authenticated` or `public` levels, it will stay pinned in the open ports UI for better accessibility regardless of whether or not it is still accessible.
119+
Once a port is shared at either `authenticated` or `public` levels, it will stay
120+
pinned in the open ports UI for better accessibility regardless of whether or
121+
not it is still accessible.
114122

115123
![Annotated port controls in the UI](../images/networking/annotatedports.png)
116124

117-
This can also be used to change the sharing level of `coder_app`s by entering their port number in the shared ports UI. The `share` attribute of `coder_app`s defined using the terraform provider can be overridden by sharing the port, but is limited by the maximum port sharing level enforced by the template (Enterprise).
125+
This can also be used to change the sharing level of `coder_app`s by entering
126+
their port number in the shared ports UI. The `share` attribute of `coder_app`s
127+
defined using the terraform provider can be overridden by sharing the port, but
128+
is limited by the maximum port sharing level enforced by the template
129+
(Enterprise).
118130

119-
By default, OSS deployments allow all workspaces to share ports at both the `authenticated` and `public` levels.
131+
By default, OSS deployments allow all workspaces to share ports at both the
132+
`authenticated` and `public` levels.
120133

121134
#### Configure sharing level (enterprise)
122135

123-
Enterprise-licensed template admins can control the maximum port sharing level for workspaces under a given template in the template settings. By default, the maximum sharing level is set to `Owner`, meaning port sharing is disabled for end-users.
136+
Enterprise-licensed template admins can control the maximum port sharing level
137+
for workspaces under a given template in the template settings. By default, the
138+
maximum sharing level is set to `Owner`, meaning port sharing is disabled for
139+
end-users.
124140

125141
![Max port sharing level in the UI](../images/networking/portsharingmax.png)
126142

127143
#### Configuring port protocol
128144

129-
Both listening and shared ports can be configured to use either `HTTP` or `HTTPS` to connect to the port. For listening ports the protocol selector applies to any port you input or select from the menu. Shared ports have protocol configuration for each shared port individually.
145+
Both listening and shared ports can be configured to use either `HTTP` or
146+
`HTTPS` to connect to the port. For listening ports the protocol selector
147+
applies to any port you input or select from the menu. Shared ports have
148+
protocol configuration for each shared port individually.
130149

131-
You can access any port on the workspace and can configure the port protocol manually by appending a `s` to the port in the URL.
150+
You can access any port on the workspace and can configure the port protocol
151+
manually by appending a `s` to the port in the URL.
132152

133153
```
134154
# Uses HTTP

0 commit comments

Comments
 (0)