I’m a first time self-hoster looking to configure PhotoPrism to work alongside my functional, internet facing NCP instance. I have been beating my head against the wall trying to get this to work and want to make sure that what I’m trying to achieve is possible and not prevented because of some default NCP settings for privacy.
I have my NCP instance facing the internet using
duckdns.org. This works great, and I’m very pleased! Incredible work from the nextcloud team and nachoparker for making nextcloud accessible for people like me.
I have PhotoPrism working on my local network on the default 2342 port. PhotoPrism works awesome locally, and I have it set up to use my Nextcloud Photos folder as the originals folder. I would like to be able to access PhotoPrism from the internet using my
mysubdomain.duckdns.org if possible.
After some digging, I suspect that I will need to set up a reverse proxy to take a request and point it to my local PhotoPrism instance. To this end, I have tried to set up a reverse proxy using both
photos.mysubdomain.duckdns.org (duckdns by default allows wildcard sub-subdomains, so this should work too). I haven’t been able to get either of these to work.
I think I have gotten close (using the
photos.mysubdomain.duckdns.org strategy), with the following
photoprism.conf I have added to my
/etc/apache2/sites-available/ directory and enabled with
sudo a2ensite photoprism.conf. I additionally was able to get an SSL certificate for
photos.mysubdomain.duckdns.org. Now, when I navigate to
photos.mysubdomain.duckdns.org, I get a 500 internal server error. I do not know much about this, but I have 2 theories for why this may be happening.
photoprism.conf, I am redirecting traffic on port 443 to a
http://localhost:2342domain, which may cause issues.
There are NCP settings built into a local firewall (maybe iptables?) that prevent this kind of forwarding using the same duckdns subdomain I used for
mysubdomain.duckdns.org(which directs traffic to my NCP instance). In this case, I am out of my depth and would need help.
Can anyone help me out with getting my PhotoPrism instance to face the internet alongside an NCP installation? I am posting here instead of at PhotoPrism first because I think the default iptables settings may be the issue. If this isn’t preventing me from having my PhotoPrism instance from facing the internet, I’ll move on and ask for help elsewhere.