Respect x-forwarded-proto for ACP
This commit is contained in:
parent
1e312ded4c
commit
26eb3502be
|
|
@ -28,7 +28,7 @@ function checkAdmin(cb) {
|
|||
*/
|
||||
function handleAcp(req, res, user) {
|
||||
var sio;
|
||||
if (req.secure) {
|
||||
if (req.secure || req.header("x-forwarded-proto") === "https") {
|
||||
sio = Config.get("https.domain") + ":" + Config.get("https.default-port");
|
||||
} else {
|
||||
sio = Config.get("io.domain") + ":" + Config.get("io.default-port");
|
||||
|
|
|
|||
Loading…
Reference in a new issue