I've set up LAMP server and installed WordPress on my Raspberry Pi 4. When it is run locally, I can mount a NAS into the wp-content folder, and I can add media to my WordPress Media Library. However, once I switch the site address from the local IP to my domain name, the connection between my media library and the mounted NAS breaks, and I no longer have visibility in my media library of the content on my NAS.
I have thought about this for a minute, and the best I can come up with is, once I've changed my WordPress site address to my domain name, I should go into the wp-config file, and redefine where WordPress looks for the media library.
Am I on the right track? If so, can anyone point me to a section of the wp-config file where I could find the correct config to change? If not, I am open to any suggestions...
Thanks!
Edit: I realized the NAS content is showing up in the media library (I use this plugin to import the content), but whenever I try to watch a video, it says
Media error: Format(s) not supported or source(s) not found
I know the format is supported because I can play the content when the site hosted locally.
So I'm at a bit of a loss here...perhaps I need to remap the config file?