ServerStatus-Rust icon indicating copy to clipboard operation
ServerStatus-Rust copied to clipboard

[Request] 自定义路径

Open delphinuz opened this issue 2 months ago • 3 comments

🥰 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

delphinuz avatar Oct 29 '25 02:10 delphinuz

在 nginx 里 rewrite

zdz avatar Oct 29 '25 02:10 zdz

在 nginx 里 rewrite

目前是部署方式直接使用,没套nginx,不过我试试看,谢谢。

delphinuz avatar Oct 29 '25 08:10 delphinuz

在 nginx 里 rewrite

目前是部署方式直接使用,没套nginx,不过我试试看,谢谢。

试了下不行,有js和css是从根路径导入的

korbinZhang avatar Nov 21 '25 11:11 korbinZhang