Hi,
I'm currently setting up a locally hosted Shiny Server to host users apps (I'm a newbie to Shiny). I have set up the hosting to use the user_dirs hosting model:
allow_app_override true;
directory_index on;
access_log /var/log/shiny-server/access.log tiny;
# Tell Shiny Server that we want to run as the user whose
# home directory we find the application in.
run_as :HOME_USER:;
# Define a server that listens of port 3838.
server {
listen 3838;
# Define a location at the base URL
location / {
# Allow users to host their own apps in ~/ShinyApps
user_dirs;
# Optionally, you can restrict the privilege of hosting Shiny applications
# only to members of a particular Linux group.
# members_of shinyUsers;
}
}
This works great, and all applications show up as:
http://example.com:3838/{username}/{app directory name}
However, the server root page (http://example.com:3838/) shows up as Page Not Found.
Is there a way to add a home page to the root of the server when running in user_dirs mode? Either static HTML, or ideally, a dynamic listing of all users who have a ShinyApps directory defined in their home directory?
Many thanks.