apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.76k stars 1k forks source link

[BUG] When you choose to enable HTTPS, the port will be changed back to 443 by default. #2779

Open shenliehuozhi opened 1 month ago

shenliehuozhi commented 1 month ago

Is there an existing issue for this?

Current Behavior

我打算新建一个https页面可用性监测,按要求填写后 image 因为是https页面,点击开启https,此时端口会变成默认的443端口 image 如果稍不注意,就会导致配置错误。

Expected Behavior

建议将开启HTTPS这个选项,调整到端口选项前面,这样开启HTTPS默认是443,但是端口选项在后面,用户明白还需修改对应端口号 image

Steps To Reproduce

No response

Environment

HertzBeat version(s):v1.6.0

Debug logs

No response

Anything else?

No response

tomsun28 commented 3 weeks ago

hi, this is a feature, auto config default ssl port 443.

zuobiao-zhou commented 2 weeks ago

hi, this is a feature, auto config default ssl port 443.

However, when a user manually changes an HTTPS port number, clicking the "Enable HTTPS" button forces the port number back to 443. It may be better if the button only sets the default value; when the user has already modified the port, clicking "Enable HTTPS" should leave the port number unchanged.