mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Respect x-forwarded-proto for ACP
This commit is contained in:
parent
1e312ded4c
commit
26eb3502be
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue