I have a webapp running on a payara server which is behind an nginx server, the webapp is working fine, same for the css/img/js files. My problem is that this line #{request.requestURL} in a facelet returns the local url (http://localhost:port) instead of the actual url of the website.
Do you have any idea of how I could fix this ?
Thank you in advance.
FYI: nginx 1.12.1, Payara 5.183, java-ee 8, jsf 2.3