更新 Service:Coder
+10
-3
@@ -12,10 +12,17 @@ curl -L https://coder.com/install.sh | sh
|
||||
|
||||
# 修改 Coder 綁定的位址
|
||||
|
||||
預設僅綁定本機,改為 `0.0.0.0:3000` 以開放外部連線。
|
||||
|
||||
```bash
|
||||
echo 'export CODER_HTTP_ADDRESS=0.0.0.0:3000' >> ~/.bashrc && source ~/.bashrc
|
||||
nano /etc/coder.d/coder.env
|
||||
```
|
||||
|
||||
(設定如下)
|
||||
|
||||
```
|
||||
CODER_ACCESS_URL=https://coder.jsc.idv.tw
|
||||
|
||||
CODER_HTTP_ADDRESS=0.0.0.0:80
|
||||
CODER_PG_CONNECTION_URL=postgres://postgres:Jeffery2026@192.168.3.101:5432/coder?sslmode=disable
|
||||
```
|
||||
|
||||
# 設定 Coder 服務檔
|
||||
|
||||
Reference in New Issue
Block a user