Skip to content

Commit 78df3be

Browse files
committed
fix for registers not behind proxy
1 parent 9712de2 commit 78df3be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM containers.intersystems.com/intersystems/iris-community:2022.1.0.152.0
1+
FROM containers.intersystems.com/intersystems/iris-community:2022.1.0.164.0
22

33
USER root
44

src/cls/ZPM/Package.cls

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ ClassMethod ServerURL() As %String
9797
Set host = host_":"_port
9898
}
9999
}
100-
//Set host = host_$p(%request.Application,"/",1,*-1)
100+
#; If not behind the proxy where it have to be hidden redirect from / to /registry
101+
if %request.GetCgiEnv("HTTP_X_FORWARDED_HOST")="" {
102+
Set host = host _ $p(%request.Application, "/" ,1,*-1)
103+
}
101104
Return host
102105
}
103106

0 commit comments

Comments
 (0)