I’m trying to get shinyproxy going on EC2 and am using nginx to reverse proxy. I can get this working just fine when /
is the location, but I want the location to be /pilot
. For example, in nginx I had something like:
location /pilot/ {
rewrite ^/pilot/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8080/;
proxy_redirect http://127.0.0.1:8080/ $scheme://$host/pilot/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
}
Has anybody gotten this working? I suspect I need a rewrite and I’ve just not done it very well? Also, do I need to change landing-page
in application.yml
to /pilot
? I think I had to do something similar when setting up Jupyter notebooks.
Chris