Keep Shiny landing-page url as simple domain name


I have a Shiny app deployed with shinyproxy and working on
My issue is that whenever someone goes to it directs well to the shiny app but then it adds additionnal info to the url such as which basically are my folder and my docker image.
How can I just display simply the url without anything after it?
I was told this can be dealt in the nginx.conf but I don’t really know where exactly.
Thanks a lot!


I just figured this out myself! In your shiny.conf file, under the location block, where it says

proxy_pass http://localhost:8080/;

instead make it

proxy_pass http://localhost:8080/app/docker_general/;

or whatever you want to be the landing page of your app. Then, when you go to your domain, it will no longer add that additional info to the url.

At least this worked for me.

Thanks for your reply (sorry for the delay…).
My .conf file looks a bit different, do you know where I should do the change?:

location / {
    return 301 https://$host$request_uri;

server {
    listen 443 ssl;
    server_tokens off;

ssl_certificate       /etc/letsencrypt/live/;
ssl_certificate_key   /etc/letsencrypt/live/;
include               /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam           /etc/letsencrypt/ssl-dhparams.pem;

location / {
    proxy_pass         http://shinyproxy/;

    proxy_http_version 1.1;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection "upgrade";
    proxy_read_timeout 600s;
    proxy_buffering    off;

    proxy_redirect     off;
    proxy_set_header   Host $host;
    proxy_set_header   X-Real-IP $remote_addr;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Host $server_name;

Hi Mav9rick,

How did you make it work finally? I’m experiencing a similar problem.

Here is my question on SO