Opened 8 years ago
Closed 8 years ago
#844 closed enhancement (fixed)
Support X-Forwarded headers for service URL
Reported by: | Twan Goosen | Owned by: | Twan Goosen |
---|---|---|---|
Priority: | major | Milestone: | ComponentRegistry-2.0 |
Component: | ComponentRegistry | Version: | |
Keywords: | Cc: |
Description
Currently, the full service URL is provided by the context parameter eu.clarin.cmdi.componentregistry.serviceRootUrl
. This is not sufficient in the case of a proxied setup. The solution is to replace this parameter with three new parameters:
serviceUrlUseXForwarded
- true or false
serviceUrlBase
- protocol + host (ignored if former is true)
serviceUrlPath
- path within host
Service root URL would either be (if serviceUrlUseXForwarded
== false)
serviceUrlBase
+serviceUrlPath
or (if serviceUrlUseXForwarded
== true)
getHeader("X-Forwarded-Proto")
+://
+getHeader("X-FORWARDED-HOST")
+serviceUrlPath
Change History (3)
comment:1 Changed 8 years ago by
Milestone: | → ComponentRegistry-2.0 |
---|
comment:3 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed in [6887:6892]