2022-03-24 09:07:33 -06:00
|
|
|
[Unit]
|
2023-05-01 15:02:51 -07:00
|
|
|
Description="Coder - external workspace proxy server"
|
2024-08-17 14:51:13 +03:00
|
|
|
Documentation=https://coder.com/docs
|
2022-03-24 09:07:33 -06:00
|
|
|
Requires=network-online.target
|
|
|
|
|
After=network-online.target
|
2023-05-01 18:34:21 -07:00
|
|
|
ConditionFileNotEmpty=/etc/coder.d/coder-workspace-proxy.env
|
2022-03-24 09:07:33 -06:00
|
|
|
StartLimitIntervalSec=60
|
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=notify
|
2023-05-01 18:34:21 -07:00
|
|
|
EnvironmentFile=/etc/coder.d/coder-workspace-proxy.env
|
2022-06-15 16:02:18 -05:00
|
|
|
User=coder
|
|
|
|
|
Group=coder
|
2022-03-24 09:07:33 -06:00
|
|
|
ProtectSystem=full
|
|
|
|
|
PrivateTmp=yes
|
|
|
|
|
PrivateDevices=yes
|
|
|
|
|
SecureBits=keep-caps
|
2022-06-28 16:02:42 +01:00
|
|
|
AmbientCapabilities=CAP_IPC_LOCK CAP_NET_BIND_SERVICE
|
2022-03-28 13:57:19 -06:00
|
|
|
CacheDirectory=coder
|
2022-03-24 18:20:13 -06:00
|
|
|
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK CAP_NET_BIND_SERVICE
|
2022-04-25 21:09:11 -05:00
|
|
|
KillSignal=SIGINT
|
2022-10-17 23:50:29 +00:00
|
|
|
KillMode=mixed
|
2022-03-24 09:07:33 -06:00
|
|
|
NoNewPrivileges=yes
|
2023-05-05 13:09:04 -05:00
|
|
|
ExecStart=/usr/bin/coder workspace-proxy server
|
2022-03-24 09:07:33 -06:00
|
|
|
Restart=on-failure
|
|
|
|
|
RestartSec=5
|
2022-10-17 23:50:29 +00:00
|
|
|
TimeoutStopSec=90
|
2022-03-24 09:07:33 -06:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|