pupcloud icon indicating copy to clipboard operation
pupcloud copied to clipboard

Pupcloud does not work with nginx reverse proxy

Open posLop opened this issue 3 years ago • 5 comments

Could be user error but whenever i use nginx with the docker image of pupcloud i can access via lan but whenever i use an https reverse proxy i get a message that says password required in basic text and no styling or anyway to enter a passwd.

heres my nginx config

location /pupcloud/ {
   proxy_pass http://localhost:8998;
}

posLop avatar May 22 '22 23:05 posLop

It works for me, I tested under swag (which is nginx) with this config:

server {
        listen 443 ssl http2;
        server_name test.pupcloud.it;
        include /config/nginx/proxy-confs/*.subfolder.conf;
        include /config/nginx/ssl.conf;
        location /pup/ {
                proxy_pass http://pupcloud:17178/;
        }
}

the name pupcloud in the proxy-pass is there because I run it in a virtual network with swag (--net mynet), but I don't think it makes any difference.

Can I ask you what version of pupcloud, and what was the commandline to start the docker? Also, please press F12 and see in the network tab what actually gets loaded. It seems to me that you have basic auth configured somewhere in your nginx and pupcloud triggers it.

proofrock avatar May 24 '22 06:05 proofrock

Another thing: is nginx run under docker, itself? I guess you know it, but just to be sure: localhost is not resolved properly inside docker (if you don't use --net host).

proofrock avatar May 24 '22 06:05 proofrock

I am very new to this kind of stuff but i am def learning

i think this is a missing header issue so i will investigate later. im pretty busy rn so i might not be able to get to it anytime soon. might be a few days before i can post any results

i am running pup in docker and nginx with the AUR nginx package on a arch linux server

posLop avatar May 26 '22 17:05 posLop

I know it does not help, but my developer has got Pupcloud working inside Docker. We've hit another issue, but that is not related, and I will file :)

DarrenPIngram avatar Jul 24 '22 09:07 DarrenPIngram

and I will file

Yes please!

proofrock avatar Jul 30 '22 02:07 proofrock