diff --git a/emailPremium/static/emailPremium/emailPremium.js b/emailPremium/static/emailPremium/emailPremium.js index 1facd756c..d5f38b6ab 100644 --- a/emailPremium/static/emailPremium/emailPremium.js +++ b/emailPremium/static/emailPremium/emailPremium.js @@ -2,6 +2,26 @@ * Created by usman on 6/22/18. */ +/* Ensure CyberCP Angular module exists (system-status.js normally sets window.app in
) */ +(function () { + if (typeof window === 'undefined' || typeof angular === 'undefined') { + return; + } + if (typeof window.app !== 'undefined' && window.app) { + return; + } + try { + window.app = angular.module('CyberCP'); + } catch (e) { + try { + window.app = angular.module('CyberCP', []); + } catch (e2) { + return; + } + } +})(); +var app = window.app; + /* Java script code to list accounts */ app.controller('listDomains', function ($scope, $http) { diff --git a/emailPremium/templates/emailPremium/Rspamd.html b/emailPremium/templates/emailPremium/Rspamd.html index 1769eb3bc..f052f992e 100644 --- a/emailPremium/templates/emailPremium/Rspamd.html +++ b/emailPremium/templates/emailPremium/Rspamd.html @@ -611,7 +611,7 @@- {% trans "Opens the official Rspamd web interface in a new tab (path /emailPremium/Rspamd/ui/ — proxied through CyberPanel, admin session required)." %} + {% trans "Opens the Rspamd controller UI over HTTPS using the same hostname and port as CyberPanel (path /emailPremium/Rspamd/ui/). Rspamd itself only speaks HTTP on 127.0.0.1:11334; the panel reverse-proxies it so you do not need https://YOUR_SERVER_IP:11334 (that URL is not served by Rspamd)." %}
- {% trans "If the proxied UI misbehaves, connect to port 11334 on the server via SSH and use your local browser." %} + {% trans "If the proxied UI misbehaves, forward port 11334 to your machine and open the link below (HTTP on localhost only — not HTTPS)." %}
ssh -N -L 11334:127.0.0.1:11334 root@{{ ipAddress }}