Hi I'm trying to set up RStudio server with a reverse proxy.
Here is my Nginx config
user nginx;
worker_processes 1;
# Defines a file that will store the process ID of the main process.
pid /var/run/nginx.pid;
events {
# Sets the maximum number of simultaneous connections that can be opened by a worker process.
worker_connections 1024;
}
http {
server {
# Running port
listen 80;
# Proxying the connections
location /rstudio/ {
rewrite ^/rstudio/(.*)$ /$1 break;
proxy_pass http://localhost:8787;
proxy_redirect http://localhost:8787/ $scheme://$host/rstudio/;
}
}
}
Unfortunately I get a 502: Bad Gateway error. Do you have any idea? 8787 is open as reported from netstat
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::8787 :::* LISTEN -
RStudio and nginx is running on two separated docker container which have port opened