You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/admin/workspaceproxies.md
+57-9
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ A workspace proxy is a relay connection a developer can choose to use when conne
11
11
12
12
# Deploy a workspace proxy
13
13
14
-
Workspace deployment and management must be done by a user with the `owner` role. You must logged into the `coder` cli to create a proxy.
14
+
Each workspace proxy should be a unique instance. At no point should 2 workspace proxy instances share the same authentication token.
15
15
16
-
```bash
17
-
coder login <deployment_url>
18
-
```
16
+
## Requirements
17
+
18
+
- The [Coder CLI](../cli.md) must installed on and authenticated as a user with the Owner role.
19
19
20
-
# Step 1: Create the proxy
20
+
##Step 1: Create the proxy
21
21
22
-
Create the workspace proxy and make sure to save the returned authentication token for said proxy.
22
+
Create the workspace proxy and make sure to save the returned authentication token for said proxy. This is the token the workspace proxy will use to authenticate back to primary coderd.
Deploying the workspace proxy will also register the proxy with coderd and make the workspace proxy usable. If the proxy deployment is successful, `coder proxy ls` will show an `ok` status code:
41
+
42
+
```
43
+
$ coder proxy lsPM
44
+
NAME URL STATUS STATUS
45
+
brazil-saopaulo https://brazil.example.com ok
46
+
europe-frankfurt https://europe.example.com ok
47
+
sydney https://sydney.example.com ok
48
+
```
49
+
50
+
Other Status codes:
51
+
-`unregistered` : The workspace proxy was created, and not yet deployed
52
+
-`unreachable` : The workspace proxy was registered, but is not responding. Likely the proxy went offline.
53
+
-`unhealthy` : The workspace proxy is reachable, but has some issue that is preventing the proxy from being used. `coder proxy ls` should show the error message.
54
+
-`ok` : The workspace proxy is healthy and working properly!
55
+
56
+
### Configuration
57
+
58
+
Workspace proxy configuration overlaps with a subset of the coderd configuration. To see the full list of configuration options: `coder proxy server --help`
39
59
40
-
Deploying the workspace proxy will also register the proxy and make the workspace proxy usable.
60
+
```bash
61
+
# Proxy specific configuration. These are REQUIRED
0 commit comments