You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can access wfm on <host>/wfm/but all the directory links lead to <host>/<dir>instead of <host>/wfm/<dir>
My understanding was that adding -prefix fixes this. But if I add the commented line above (command: -prefix=/data:/wfm):
wfm is only available under <host>/wfm/wfm/
the links inside wfm lead to <host>/wfm/<dir> thus "outside" of /wfm/wfm
How can I fix this?
Thanks!
PS: The documentation of prefix is a bit misleading. The text contains "data" and "wfm" but the solution is "httppath". It might be helpful to pick up one of the examples, not something entirely else.
The text was updated successfully, but these errors were encountered:
Ah, fixed the documentation. I also changed some of the behaviors and recommendations for Docker.
Docker compose and Nginx aside, the new Dockerfile, does not force prefix to be /data:/ in the entrypoint. Generally you need to mount the volume that will be used by left path of prefix:
docker run -v /some/host/data/path:/foo tenox7/wfm:latest -prefix /foo:/
However I now recommend to actually run the docker container as root and let wfm perform chroot and setuid. This way it can open secrets and passwords files ahead of time.
So rather than using -prefix use -chroot instead:
docker run -v /some/host/data/path:/data tenox7/wfm:latest -chroot /data
If you want to expose it as a different http path then just add -prefix /:/somepath. Use / because it will be relative to chroot.
I also recommend running it as root and passing -setuid uid:gid in numeric form in your case it would be -setuid 1001:1001.
I would like to use wfm behind an nginx, both in docker, ideally with docker compose (separate files).
My docker-compose.yml for wfm currently is:
nginx.conf:
I can access wfm on
<host>/wfm/
but all the directory links lead to<host>/<dir>
instead of<host>/wfm/<dir>
My understanding was that adding
-prefix
fixes this. But if I add the commented line above (command: -prefix=/data:/wfm
):<host>/wfm/wfm/
<host>/wfm/<dir>
thus "outside" of/wfm/wfm
How can I fix this?
Thanks!
PS: The documentation of
prefix
is a bit misleading. The text contains "data" and "wfm" but the solution is "httppath". It might be helpful to pick up one of the examples, not something entirely else.The text was updated successfully, but these errors were encountered: