mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00

* feat: idle sleep for proxmox LXCs * refactor: replace deprecated docker api types * chore(api): remove debug task list endpoint * refactor: move servemux to gphttp/servemux; favicon.go to v1/favicon * refactor: introduce Pool interface, move agent_pool to agent module * refactor: simplify api code * feat: introduce debug api * refactor: remove net.URL and net.CIDR types, improved unmarshal handling * chore: update Makefile for debug build tag, update README * chore: add gperr.Unwrap method * feat: relative time and duration formatting * chore: add ROOT_DIR environment variable, refactor * migration: move homepage override and icon cache to $BASE_DIR/data, add migration code * fix: nil dereference on marshalling service health * fix: wait for route deletion * chore: enhance tasks debuggability * feat: stdout access logger and MultiWriter * fix(agent): remove agent properly on verify error * fix(metrics): disk exclusion logic and added corresponding tests * chore: update schema and prettify, fix package.json and Makefile * fix: I/O buffer not being shrunk before putting back to pool * feat: enhanced error handling module * chore: deps upgrade * feat: better value formatting and handling --------- Co-authored-by: yusing <yusing@6uo.me>
5.5 KiB
5.5 KiB
目錄
運行示例
主要特點
- 容易使用
- 輕鬆配置
- 簡單的多節點設置
- 錯誤訊息清晰詳細,易於排除故障
- 自動 SSL 憑證管理(參見 支援的 DNS-01 驗證提供商)
- 自動配置 Docker 容器
- 容器狀態/配置文件變更時自動熱重載
- 閒置休眠:在閒置時停止容器,有流量時喚醒(可選,參見截圖)
- OpenID Connect:輕鬆實現單點登入
- HTTP(s) 反向代理和TCP 和 UDP 埠轉發
- HTTP 中介軟體 和 自定義錯誤頁面
- 網頁介面,具有應用儀表板和配置編輯器
- 支援 linux/amd64、linux/arm64
- 使用 Go 編寫
前置需求
設置 DNS 記錄指向運行 GoDoxy
的機器,例如:
- A 記錄:
*.y.z
->10.0.10.1
- AAAA 記錄:
*.y.z
->::ffff:a00:a01
安裝
Note
GoDoxy 僅在
host
網路模式下運作,請勿更改。如需更改監聽埠,請修改
.env
。
-
準備一個新目錄用於 docker compose 和配置文件。
-
在目錄內運行安裝腳本,或手動安裝
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/yusing/godoxy/main/scripts/setup.sh)"
-
現在可以在 WebUI
https://godoxy.yourdomain.com
進行額外配置
手動安裝
-
建立
config
目錄,然後將config.example.yml
下載到config/config.yml
mkdir -p config && wget https://raw.githubusercontent.com/yusing/godoxy/main/config.example.yml -O config/config.yml
-
將
.env.example
下載到.env
wget https://raw.githubusercontent.com/yusing/godoxy/main/.env.example -O .env
-
將
compose.example.yml
下載到compose.yml
wget https://raw.githubusercontent.com/yusing/godoxy/main/compose.example.yml -O compose.yml
資料夾結構
├── certs
│ ├── cert.crt
│ └── priv.key
├── compose.yml
├── config
│ ├── config.yml
│ ├── middlewares
│ │ ├── middleware1.yml
│ │ ├── middleware2.yml
│ ├── provider1.yml
│ └── provider2.yml
├── data
│ ├── metrics # metrics data
│ │ ├── uptime.json
│ │ └── system_info.json
└── .env
截圖
閒置休眠
監控
![]() |
![]() |
![]() |
運行時間監控 | Docker 日誌 | 伺服器概覽 |
![]() |
![]() |
|
系統監控 | 圖表 |
自行編譯
-
克隆儲存庫
git clone https://github.com/yusing/godoxy --depth=1
-
如果尚未安裝,請安裝/升級 go (>=1.22) 和
make
-
如果之前編譯過(go < 1.22),請使用
go clean -cache
清除快取 -
使用
make get
獲取依賴 -
使用
make build
編譯二進制檔案