Added by Dirk Hildebrand over 5 years ago
Hi,
i installed openProject to a Ubuntu 18.04 LTS Server and made it available to the internet through a nginx reversproxy. My Problem now is, that some Links in OpenProject are set to the internal IP Adress and not to the Public URL, so that People from the outside cant open them., e.g. the Administrator can not open the Admin Page, because the URL of the link is http://internalip/admin instead of https://publicdomain.tld/admin or when you click on the OpenProject Logo in the Top center of the Page you are send to http://internalip instead of https://publicdomain.tld/
Where can i change that behavior?
Regards
Dirk
Replies (3)
I guess i found it. In my Nginx settings was the
missing. Now it seems to be fixed.
Regards
Dirk
Hi Dirk,
yes the proxy settings needs to forward the Host value if the system does not know it by itself. There are two places in OpenProject where this is relevant:
proxy_set_header
(orProxyPreserveHost
in Apache2). The same goes for HTTPS state forward if you terminate TLS/SSL on your nginx. You will then need to set theX-Forwarded-Proto https
header to ensure the proxied server is notified about being in an TLS/SSL request to properly usehttps://
scheme.Setting.protocol
andSetting.host_name
values that you can control in theAdministration > System settings
. In packaged installations, these values are being taken automatically from the values input in the configuration wizard.I hope that clears up why both are needed.
Best,
Oliver
Hey,
thank you for you reply. I guess i fixed it. This is my full nginx config: