Landing page for single app and navbar


#1

Hi there,

I know that some of the former questions in this forum already deal with my question. Most of all, the question “Customize shinyproxy navbar and landing page” brought up the issue already. So please apologize some doubling. But as far as I can tell, non of the replies provide a definite answer to the questions. So I’ll try it again.

I have a single shiny app and I want to send users directly to this app. Apparently, I could change the index.html in the way jpg suggested. I am not an IT.Expert, but I always thought it is a dirty workaround to change source code.
Moreover, when I open shinyproxy_###.jar, change code and create a ###.jar fille again, I am not able to start this file anymore (it is now “corrupt”). So, is there another way to send users directly to the only app that I offer after sign in?

Plus, I want to customize the navbar. Namely, I want to change the black background into white, I want to change the color of the font and I want to change the blue color of buttons. Again, I could change the css, but I wonder if there is a direct way to change css or even to add my own css file (similar to shiny, where I can add my css-file to a www folder).

Thanks!


#2

Hi @laurenzo,

You could provide a URL to your users that goes directly to that specific app, for example:

http://localhost:8080/app/01_hello

This URL will still be intercepted for login (if you have authentication configured), but it will skip the index page.

Regarding css customization, we are currently working towards a templating mechanism that would allow such customizations without having to recompile the jar. A contribution has already been submitted, this will be integrated in Shinyproxy soon: https://github.com/openanalytics/shinyproxy/pull/42

Regards,
Frederick


#3

Hi Frederick,

great, thanks for your reply. I’m sorry, I have to ask for some details. I guess, I have to put the url anywhere in application.yml, bur where exactly?

shiny:
proxy:
title: euler-test
landing-page: /
heartbeat-rate: 10000
heartbeat-timeout: 60000
port: 8080
authentication: simple
admin-groups: scientists
# Example: ‘simple’ authentication configuration
users:
- name: jack
password: password
groups: scientists
- name: jeff
password: password
groups: mathematicians
# Docker configuration
docker:
cert-path: /home/none
url: http://localhost:2375
port-range-start: 20000
apps:
– name: euler
display-name: Euler’s number
description: Adding another app to shinyproxy
docker-cmd: [“R”, “-e shiny::runApp(’/root/euler’)”]
docker-image: openanalytics/shinyproxy-template
groups: scientists, mathematicians

None of my attempts works… Thanks, Lorenz


#4

Hi @laurenzo,

What I meant is, you could send a URL to your users that points directly to the app instead of a URL that points to the ShinyProxy main page.

Or, you could use a proxy like nginx and rewrite the URLs to go directly to the app.

I’m afraid ShinyProxy itself does not have any settings to configure such redirecting behaviour.


#5

I’m new to shinyProxy and I was puzzled. Sorry, actually your first reply was quite clear already…
It is running now the way I want. Thanks a lot!