Feature Request:
I couldn't find it anywhere obvious, but during the upgrade process it is necessary to move the image-attachments directory contents to the new path. Also (at least for my installation) i have to chown to the netbox user on that folder.
I'm curious if we could get the process bundled into the upgrade.sh (maybe just move the contents from the old netbox symlink?). I'd be happy with a config option to point the image-attachments directory somewhere else on the filesystem if not.
This might get murky when dealing with symlinks (e.g. media/ -> /opt/somewhere/else/). Not really sure how best to approach this. Any ideas?
I agree symlinks underneath the the /opt/netbox symlink would get hairy, but that seems like the simplest option
Looks like media/ is served by django directly, could we not just have a config option to point that elsewhere?
Yeah, I think exposing it as a config option makes sense.
+1 for making it a config option. That seems the least insane way to handle this ;)
There's a config option for this already, MEDIA_ROOT - for handling upgrades I'm actually modifying settings.py but preferably this would be configured within configuration.py.
Most helpful comment
Yeah, I think exposing it as a config option makes sense.