How do we move /seafdav to a custom path (for security by obscurity purposes) if we’re using nginx? I replaced /seafdav in seafile/conf/seafdav.conf with my own path, and made relevant replacements also in nginx config, but gettin 502 by nginx.
Is the path not customizable? Or is there a path length limit?
For some reason I continue getting 502, although the paths got replaced verbatim in both seafdav & nginx configs.
This seems to be another victim of the overly complicated setup that comes with docker. As far as I can tell, if you want to do that you are going to need to bypass the nginx built into the seafile docker container, because it has /seafdav built into its unchangeable config. That config looks like:
In your seafile-server.yml file you will need to add at least port 8080 like this. While you are there you could also add 8000 and 8082 if you want to bypass the nginx in the container for those as well, if you think you might want to make similar customization to other parts.
ports:
- "8080:8080"
Then you can copy the /seafdav section to your reverse proxy, changing the address it forwards to to be the IP of your server (instead of 127.0.0.1), and set the path to whatever you want.
Let me be clear, this is what I think you need to do, but I haven’t used seafdav, and haven’t tested this, so I don’t know that it is all you will need to do.