| Crates.io | rblur |
| lib.rs | rblur |
| version | 0.2.6 |
| created_at | 2025-02-14 07:45:31.739595+00 |
| updated_at | 2025-02-22 12:14:27.631571+00 |
| description | 一個支援網頁配置介面的輕量級網頁伺服器 |
| homepage | |
| repository | https://github.com/YuFireWhisper/rblur.git |
| max_upload_size | |
| id | 1555382 |
| size | 185,762 |
rBlur 是個便捷的 Web 伺服器,支援靜態文件服務、路由轉發,並且提供網頁配置介面。
Ubuntu 環境下安裝:
sudo apt update
sudo apt install build-essential
sudo apt install libssl-dev pkg-config
sudo apt install nodejs npm
cargo install rblur
git clone https://github.com/YuFireWhisper/rblur.git
cd rblur
cargo build --release
最簡單的啟動方式是使用預設配置:
rblur -u
這會:
/web_config)如果需要自定義配置,可以建立配置文件並指定路徑:
rblur -c /path/to/config
配置文件範例:
http {
server {
listen 0.0.0.0:8080;
location / {
static_file ../index.html;
}
web_config on;
}
}
Options:
-c, --config-path <CONFIG FILE PATH> 指定配置文件路徑
-u, --use-default-config 使用預設配置
-h, --help 顯示幫助訊息
-V, --version 顯示版本資訊