Skip to content

Commit 8e2d026

Browse files
docs: document how to run workspace-proxy as a system service (coder#12810)
* docs: document how to run workspace-proxy as a system service * Update workspace-proxies.md * Update workspace-proxies.md Co-authored-by: Muhammad Atif Ali <me@matifali.dev> * docs: fix duplication --------- Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
1 parent f3cfe10 commit 8e2d026

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

docs/admin/configure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ steps:
130130

131131
## System packages
132132

133-
If you've installed Coder via a [system package](../install/index.md) Coder, you
134-
can configure the server by setting the following variables in
133+
If you've installed Coder via a [system package](../install/index.md), you can
134+
configure the server by setting the following variables in
135135
`/etc/coder.d/coder.env`:
136136

137137
```env

docs/admin/workspace-proxies.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,28 @@ and up the deployment's replicas.
147147
coder wsproxy server
148148
```
149149

150+
### Running as a system service
151+
152+
If you've installed Coder via a [system package](../install/index.md), you can
153+
configure the workspace proxy by settings in
154+
`/etc/coder.d/coder-workspace-proxy.env`
155+
156+
To run workspace proxy as a system service on the host:
157+
158+
```bash
159+
# Use systemd to start workspace proxy now and on reboot
160+
sudo systemctl enable --now coder-workspace-proxy
161+
162+
# View the logs to ensure a successful start
163+
journalctl -u coder-workspace-proxy.service -b
164+
```
165+
166+
To restart workspace proxy after applying system changes:
167+
168+
```shell
169+
sudo systemctl restart coder-workspace-proxy
170+
```
171+
150172
### Running in Docker
151173

152174
Modify the default entrypoint to run a workspace proxy server instead of a

0 commit comments

Comments
 (0)