Closed haessar closed 2 years ago
I've since discovered this issue occurs even without running through cellxgene-gateway. I've tried using both apache2 and nginx configs with the same result.
The js console in browser shows the following error: Uncaught ReferenceError: selFun is not defined
As selFun is defined within interface.html, and it is never called outside of interface.html, how can it not be recognised by the server-side js interpreter?
We got it working with an nginx config setting a bunch of headers:
server {
listen 80;
listen [::]:80;
server_name XXXXXXXXXXXX;
client_max_body_size 20000M;
location /demo/ {
proxy_pass http://127.0.0.1:8000/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
}
}
I'm able to configure cellxgene_VIP to run successfully with cellxgene-gateway running on localhost, but on a remote server there appears to be some kind of rendering issue occurring in the "Visualisation in Plugin" panel here: All the options on the left-hand-side are present, but the right-hand-side is blank, and there's a bunch of js code underneath it all.
I've attempted to install VIP with both the VIP.yml and VIP_conda_R.yml options (i.e. global vs local R installation) with the same result. I'm configuring a reverse proxy via apache2 using the following templates: https://github.com/mestia/cellxgene-gateway-proxy-example.
Can anyone see what might be the issue here? Thanks