Can't login once baseurl is set - v1.9.5 #590
-
Hello, I am using the docker version of pigallery2 on a RPi4. With the breaking change of config.json , I figured i'll let the app create a fresh config.json and modify that as needed. I let it use my existing db (sqlite) , so that I don't have to run a new full scan. Due to the existing db, my existing login worked once the new image started. Made all changes in the settings UI to match what I had before. Everything worked okay until I set the baseUrl. Once the baseUrl is set and container is restarted, I can't login anymore. Please help me resolve this. Feel free to point out if I messed up any config. Once I hit the login button, docker logs get flooded with below message repeatedly -
I am using Nginx Proxy Manager. Below is the config I had before - worked without any issues before v1.9.5
With the new version, and introduction of /pgapi , I tried below config. But could only get the login page. Can't get past it.
Additional Question - With baseUrl set to /myphotos , for example, what should the value of apiPath be ? /pgapi or /myphotos/pgapi ? My Apologies if any of these seem basic / ignorant questions. I am finding my way in the Self-Hosted community with the help of such wonderful projects. Edit: I have attached the output of docker logs with NODE_ENV=debug for above issue |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Did you remove the apiPath from the config? Based on this it looks like to me: I do not recommend chaning apiPath. Also take a look at the recommended nginx settings, that might help: https://github.com/bpatrik/pigallery2/blob/master/docker/docker-compose/default/nginx.conf |
Beta Was this translation helpful? Give feedback.
-
Having a deeper look, you problem is probably with the nginx proxy. With these, your are sending
Note: there was always a |
Beta Was this translation helpful? Give feedback.
-
Looked into and it seems that the recommended settings works because there is no ending '/' at the /pgapi. Added note to the config file. |
Beta Was this translation helpful? Give feedback.
Having a deeper look, you problem is probably with the nginx proxy. With these, your are sending
/myphotos/pgapi
path to/myphotos
, but it should go to/myphotos/pgapi
Note: there was always a
/api
path, but now its renamed to /pgapi and configurable.