Hi everyone,
My current setup allows localhost:3000 to go via auth0 login. Once I login successfully, it takes me to localhost:3000/report/ where I can see a directory containing my app folder on Shiny server (I removed the Welcome page of Shiny server). BUT I am unable to secure my Shiny server i.e. if anybody goes to localhost:3838 directly, they can still access all my apps. How do I make the user accessing localhost:3838 to go via localhost:3000, authenticate, and then be given access to my apps? Also, I am unable to find any logout button on the screen after a user logs in. Is that something I have to incorporate somewhere?
Here is my nginx file (I removed TLS server as I am using this on localhost):
events {
}
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
# Listen on port 80 and redirect all requests to the
# TLS enabled server (https, port 443)
server {
listen *:80;
# Your hostname should go here
server_name localhost;
access_log off;
location / {
rewrite ^ https://$host$request_uri? permanent;
}
}
}
And here is my .env file (I have omitted the first three lines):
AUTH0_CALLBACK_URL=http://localhost:3000/callback
COOKIE_SECRET=somethingRandomHerePlease342142565748
SHINY_HOST=localhost
SHINY_PORT=3838
PORT=3000
nginx -1.14.2
Shiny Server v1.5.9.923
Node.js v8.11.3
Ubuntu 18.04