-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: custom web-root #35
Comments
Interesting, thanks for letting me know. I'll see if I can recreate your reverse proxy scenario (as I currently use subdomains rather than directories) and think about ways to address this. Possibly an optional |
That is usually the case, that apps get proxied per subdomain. (I'm also using a wildcard cert which exposes all eventual other subdomains, anyways, great landing page I really like the simplicity! EDIT: I just removed all absolute references "/" in templates, classes/Background.php |
Yeah that's the reason I went with the absolute URLs in the templates. I'm thinking a wwwroot option might be the best way forward, then I can prefix URLs with that in the templates. |
I've added an option for this in v1.2.2 (released today). You can now configure a custom URL via the Thank you again for reaching out :) |
awesome, thank you! however, i tried to pull :latest from docker-hub and also :v1.2.2 but it seems I cant get the current one - maybe the CDNs need some time. anyways thank you for taking care of it!! |
Seems like the wwwroot parameter is still missing in L40 classes/Background.php and they also don't get used with docker environments, had to rewrite config.php |
Thanks for sticking around and coming back to test this, really appreciated! Unfortunately I'm not able to recreate your setup locally so wasn't able to test properly myself. I have fixed Background.php and Weather.js, plus corrected the docker environment variable issue. Are you able to pull the main branch and test that , would save a bit of time, or do you need me to make a docker image? |
so I used following docker-compose and mapped the repo to /var/www/html volumes:
- ./jump/jumpapp:/var/www/html
- ./backgrounds:/backgrounds
- ./search:/search
- ./sites:/sites
environment:
SITENAME: '#home'
OWMAPIKEY: 'redacted'
LATLONG: 'xxx.xxxxx,xxx.xxxxx'
NOINDEX: 'true'
SHOWGREETING: 'false'
WWWURL: '/jump'
CACHEBYPASS: 'true' and I can't get it to work, even with /jump manually put in config - background and weaterdata.php fail to load (because the js is not compiled?) anyway I also tried building the container but have no display on my machine :/ I never did multiarch builds before so I'm not much of a help here,
|
I'd intended that you should put the full URL including domain (e.g. The compiled javascript bundle should be in place already as I bundled it before committing. Check that the web root directory hasn't been overwritten when you started the container, maybe stop the container and add the |
I'll have a play around over the next few days anyway and see if I can work out why it isn't working for you 😀 |
I set up two tests using the latest commit from main and both do seem to work as expected. The first was to copy everything from within the The second was to use an nginx reverse proxy with the following nginx config and
I've pushed a new image to docker hub for you to test the latest commit... Let me know how you get on, thanks again :) |
If this works I'll create a new release with the patch and update the documentation to clarify use of the |
yup, the :wwwurl-fix tag works fine! very nice! I have found the Feature successfully added! Edit: the Tags need some refinements too it seems, the /wwwurl/tag pages come without styles. |
So close, must admit I didn't test the tag pages yet! I'll take a look tomorrow. It'll be something simple, at least now I have a way of testing it. Thanks again for your help 😀 |
I found the problem and fixed it! I've packaged everything into the latest release (v1.2.3), you should be able to pick this up from Docker Hub now using the Thanks again :) |
I use a reverse proxy in my DMZ to forward pages from my internal net to WWW.
If I want to put this page onto domain.tld/start and have it proxy to jump:8123/ it requests the underlying sources wrong with "/" being the webroot.
So instead of
domain.tld/start/background.php
it requestsdomain.tld/background.php
Which of course fails
The text was updated successfully, but these errors were encountered: