From d93e97c1e3d7e90a316816755ddd6131cb270a02 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 19 May 2025 13:27:16 +0500 Subject: [PATCH] add warning for terminal ssl --- .../templates/websiteFunctions/sshAccess.html | 7 ++++ .../templates/websiteFunctions/website.html | 8 +++++ websiteFunctions/website.py | 33 ++++++++++++++++++- 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/websiteFunctions/templates/websiteFunctions/sshAccess.html b/websiteFunctions/templates/websiteFunctions/sshAccess.html index 2b989e51f..40e59bfdb 100755 --- a/websiteFunctions/templates/websiteFunctions/sshAccess.html +++ b/websiteFunctions/templates/websiteFunctions/sshAccess.html @@ -209,6 +209,13 @@
+ {% if accessed_via_ip %} +
+ Notice: You are accessing CyberPanel via an IP address.
+ The Web Terminal will not work when accessed via IP. Please issue a hostname SSL and access the panel using your hostname (with valid SSL) to enable the terminal.
+ Issue Hostname SSL +
+ {% endif %} {% if is_selfsigned_ssl %}
Warning: Your server is using a self-signed SSL certificate for the web terminal.
diff --git a/websiteFunctions/templates/websiteFunctions/website.html b/websiteFunctions/templates/websiteFunctions/website.html index 0195193a0..9614611f7 100755 --- a/websiteFunctions/templates/websiteFunctions/website.html +++ b/websiteFunctions/templates/websiteFunctions/website.html @@ -142,6 +142,14 @@ {% if not error %} + {% if accessed_via_ip %} +
+ Notice: You are accessing CyberPanel via an IP address.
+ The Web Terminal will not work when accessed via IP. Please issue a hostname SSL and access the panel using your hostname (with valid SSL) to enable the terminal.
+ Issue Hostname SSL +
+ {% endif %} +