Replies: 3 comments
-
|
So in a source install, the supported local option is to place the file under /public/images/ and reference it as Allowing paths outside the public root would effectively be filesystem traversal, which we intentionally do not do. |
Beta Was this translation helpful? Give feedback.
-
|
I did exactly that, I made the directory public/images and stored the background.jpg. The background image will be found and displayed, no problem. If I check the status of the homepage repository, untracked files will be reported by git in public/images. Similar issue if Ansible checks the git repository status. I don't think this a satisfactory solution. To avoid this git report, the path public/images should be ignored by adding the info to .gitignore. This change allows users to get a similar solution as for Docker. |
Beta Was this translation helpful? Give feedback.
-
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question: what should I do to load a local background image without touching the git repository?
...: location of git clone pathI installed homepage to an LXC container building from source, supported by Ansible. Now I want to load a background image, that is stored in
.../config/images/background.jpg.With this I tried to use a solution like
image: ../../config/images/background.jpgwhich doesn't work. Lastly I found a workaround to set a link from...config/images/to.../public/images/. Than I could useimage: images/background.jpgto load the image.This disadvantage of this solution is, it will break Ansible execution.
I guess it would be helpful to add the line
/public/imagesto .gitignoreRegards, Heiko
Beta Was this translation helpful? Give feedback.
All reactions