Type |
Bug
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.2.0
|
Issue Votes (0)
Watchers (0)
Type |
Bug
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.2.0
|
(followup to #issue #108)
Currently redirect option takes effect always and in general that would be OK, but it somewhat breaks if we put Tigase behind LB/Proxy/anything that would terminate HTTPS for us:
In above case, we the ELB handles HTTPS (on port 443) and redirects it to Tigase on 8080 this would result in infinite redirect.
In general it's recommended to use
X-Forwarded-Proto
header and make the redirection (http->https) only if it's value equals tohttp
(e.g. How do I redirect HTTP traffic to HTTPS on my Classic Load Balancer?)Please add option
redirectOnlyHttp
which would condition whether redirect should be made (do we want to have "redirect" bean which would contain both condition and target URI? Or mayberedirectCondition
with optionshttp
,https
,always
,never
for more flexibility?)