Similar to the topic “Custom URL when using nginx”, I am trying to use ShinyProxy behind nginx with a server.contextPath. But I cannot seem to get the server.contextPath recognized.
Without the server.contextPath I am able to connect just fine to http://localhost:8080 and launch the example app. However with the server.contextPath I cannot access it via nginx at http://localhost/r-shiny/… it seems to ignore the contextPath to some extent, as I get 404 errors trying to get e.g. /webjars/bootstrap/3.3.7/js/bootstrap.min.js and the page itself seems to be a 404 error from ShinyProxy.
Ah! Thank you, that indeed looks to get it working (after setting up the nginx config a bit more).
Though, it led to a new but related issue… I’m actually trying to get OpenID Connect authentication working, but while simple auth works just fine behind nginx with a context path set, openid authentication issues a redirect that seems to ignore the context path.
When I attempt to navigate to http://localhost/r-shiny, it redirects me to http://localhost/oauth2/authorization/shinyproxy, which of course 404s.
(If I manually change that in the browser location bar to http://localhost/r-shiny/oauth2/authorization/shinyproxy, it proceeds through the rest of the OpenID Connect authentication process just fine and I get a working ShinyProxy session…)