linuxserver / docker-mastodon

GNU General Public License v3.0
78 stars 15 forks source link

[BUG] The page you are looking for isn't here #52

Closed LuckyCoders closed 1 year ago

LuckyCoders commented 1 year ago

Is there an existing issue for this?

Current Behavior

Artboard

Expected Behavior

UI don't load at all

Steps To Reproduce

Снимок экрана 2023-04-29 в 03 33 30

Environment

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thespad commented 1 year ago

HTTP 521 is a Cloudflare error code, you need to disable Cloudflare proxying to see the actual error.

LuckyCoders commented 1 year ago

HTTP 521 is a Cloudflare error code, you need to disable Cloudflare proxying to see the actual error.

image
LuckyCoders commented 1 year ago

Artboard /packs/js/common-0173e2f60b9cdf71cbe2.js now reachable!!! 🎉

but / not 😪

image

I think this is where the dog dug in /linuxserver/config/nginx/site-confs/default.conf

    location / {
        try_files $uri @proxy;
    }
thespad commented 1 year ago

If your compose is accurate, then Traefik is going to be proxying to port 80, which will put you into an infinite redirect loop due to the Ruby backend forcing https.

LuckyCoders commented 1 year ago
#    labels:
#      - "traefik.http.services.foo.loadbalancer.serverstransport=ignorecert"
#      - "traefik.http.services.foo.loadbalancer.server.scheme=https"

I removed the traefik labels, but TOO_MANY_REDIRECTS remains

LuckyCoders commented 1 year ago

I replaced

    location / {
        try_files $uri @proxy;
    }

to

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://backend;
    }

in /config/nginx/site-confs/default.conf and it's work!! 🎉

Снимок экрана 2023-05-02 в 09 44 21