ServerStatus-Rust
ServerStatus-Rust copied to clipboard
[Request] 自定义路径
🥰 Feature Description
您好,
不知能否自定义 /report 之类的路径。
比如 /report 自定义为 /abcd,虽然也有password,但也许就不用 password,可用 /report_path 当 password。
比如自定义 /status-abcd 才能看各主机状态,也可避免每个人都能看到。
🧐 Proposed Solution
将相关 /report 如 .route("/report", post(http::report)) 改为 config.toml 里自定义的 "$REPORT_PATH"
加个自定义的 "$STATUS_PATH" 才显示各主机状态。
📝 Additional Information
No response
在 nginx 里 rewrite
在 nginx 里 rewrite
目前是部署方式直接使用,没套nginx,不过我试试看,谢谢。
在 nginx 里 rewrite
目前是部署方式直接使用,没套nginx,不过我试试看,谢谢。
试了下不行,有js和css是从根路径导入的