Proxy setup for the Shiny apps access and websockets
+
+# Proxy setup for the Shiny apps access and websockets:
+# https://docs.rstudio.com/ide/server-pro/access-and-security.html#running-with-a-proxy
+map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+ }
+
server {
listen 8788 default_server;
server_name _;
location / {
- proxy_pass http://127.0.0.1:8787;
+ proxy_pass http://localhost:8787;
+ proxy_redirect http://localhost:8787/ $scheme://$host/;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection $connection_upgrade;
+ proxy_read_timeout 20d;
}
location /auth-sign-in {
