Hi, I actually edited the config file according to the manual. And it works sofar. The only thing is running a ShinyApp. R obviously starts a little shinyserver locally and deploys the app on port 3568.
I assume, I have to tell nginx the port somehow. Unfortunately, I don't know how.
Here ist my nginx config
nginx.conf
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
.
.
.
sites-enabled/default:
server {
listen 80 default_server;
listen [::]:80 default_server;
# rewrite ^/rstudio$ $scheme://$host/rstudio/ permanent;
location /rstudio/ {
rewrite ^/rstudio/(.*)$ /$1 break;
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787/ $scheme://$host/rstudio/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
}
The only difference is the $connection_upgrade ist defined in the http-part in nginx.conf. sites-enabled/default is than included at the end of nginx.conf with
include /etc/nginx/sites-enabled/*;
Thx.