CaramelFur / Picsur

An easy to use, selfhostable image sharing service like Imgur with built in converting
https://picsur.org/
GNU Affero General Public License v3.0
774 stars 41 forks source link

host as subdirectory #50

Closed steagsInc closed 1 year ago

steagsInc commented 1 year ago

Hi,

I'm trying to host the app as a sub directory with nginx

location /gallery/ {
            proxy_pass http://picsur:8080/;
            proxy_set_header Host $host/gallery/;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;
        }

I get the landing page but then it load indefinitely because it tries to get resources at / and not a /gallery/

do you know if their is any way to solve this ?

CaramelFur commented 1 year ago

Hi there, and sorry but Picsur is not made to be run in a subdirectory.