Show "Jatos local" after configuration of Apache as a proxy
I've deployed Jatos on an AWS server, with Apache2 as the reverse proxy and SSL encryption. Since it is actually a local installation (because the binding port is localhost:8080), the GUI for my https:/[our domain name]/jatos show "Jatos local" on top, as it is shown here (https://www.jatos.org/Deploy-to-a-server-installation.html ), which mentions that "A local JATOS installation has a black bar on top. A server installation has a light-grey bar."
When I generate links for a study, they are all like this
If I replace localhost:8080 with [our domain name], I can open the correct study webpage, but I need to replace "localhost:8080" for all links generated if I want to send them to participants.
Since I use reverse proxy, I think it is supposed to be set as local. But is there a way to make it like a real server installation?
I'm using an AWS EC2 Debian 11 instance;
In the production.conf, the IP and port are set as:
play.server.http.address = "0.0.0.0" play.server.http.port = 8080
After I start jatos, it shows
admin@myserver:~/jatos_linux_java$ JATOS uses local Java Starting JATOS... started To use JATOS type 127.0.0.1:8080 in your browser's address bar
In the /etc/apache2/sites-available/mysite.com.conf, I have:
Let me know if you know how to solve the problem or you need more info!
Thank you very much!😀