-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Attempting to use nodecast at a non-base relative URL fails because of non-relative paths in the HTML files served
eg. using Caddy with a configuration like:
# proxy to nodecast
handle_path /nodecast/* {
reverse_proxy 127.0.0.1:4000 {
flush_interval -1
header_up X-Forwarded-Proto {scheme}
}
}
The intention here is to use nodecast at the url root of "/nodecast/". However the index.html file returns contains paths with a root specified which means Caddy cannot handle the subsequent requests as it send the requests to the server without the "/nodecast/" prefix path:
<!-- JavaScript -->
<script src="/js/icons.js"></script>
<script src="/js/api.js?v=2"></script>
<script src="/js/components/VideoPlayer.js?v=2"></script>
<script src="/js/components/ChannelList.js?v=3"></script>
<script src="/js/components/SourceManager.js?v=2"></script>
<script src="/js/components/EpgGuide.js?v=2"></script>
<script src="/js/pages/HomePage.js?v=2"></script>
<script src="/js/pages/LivePage.js?v=2"></script>
<script src="/js/pages/Guide.js?v=2"></script>
<script src="/js/pages/MoviesPage.js?v=4"></script>
<script src="/js/pages/SeriesPage.js?v=1"></script>
<script src="/js/pages/Settings.js?v=2"></script>
<script src="/js/pages/WatchPage.js?v=1"></script>
<script src="/js/app.js?v=4"></script>
<script>
I believe that removing the root "/" would fix this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working