GithubHelp home page GithubHelp logo

Comments (8)

d7415 avatar d7415 commented on September 18, 2024 2

maybe we can add fastcgi_param HTTPS on; to nginx.conf

I'm not ruling it out, but certainly not adding it yet. That and the `TRUSTED_PROXIES=*" are workarounds, not solutions.

from lychee-docker.

ildyria avatar ildyria commented on September 18, 2024 1

Hoho, I'll check that one.

from lychee-docker.

sloniupl avatar sloniupl commented on September 18, 2024 1

Now it works correctly after i added
TRUSTED_PROXIES=*

Before it was not working as i was testing it from container ip:port and not the domain it is configured for that is specified in Nginx Proxy Manager.
Now it loads correctly:
image

The only issue is that i can't access public albums that are password protected (if album is not password protected it works correctly):
image

from lychee-docker.

ildyria avatar ildyria commented on September 18, 2024

You should try the tag 5.0.0 instead.
I don't think nightly has been updated correctly yet.

Can you check your developer console in your browser what is blocking the css and JS ?
That smells like CSP.

In the mean time you can disable the new front-end by setting in your .env :

LIVEWIRE_ENABLED=false

from lychee-docker.

sloniupl avatar sloniupl commented on September 18, 2024

Thanks for quick reply, i was trying to set up image: lycheeorg/lychee:v5.0.0 and as you suggested LIVEWIRE_ENABLED=false in env but still not working.
Interesting when i try to open it using the direct port for local network bypasing Nginx Proxy Manager looks like it is working but not via nginx proxy manager translation.
This is how it looks when accessing directly via local ip:port :
image

from lychee-docker.

sloniupl avatar sloniupl commented on September 18, 2024

Looks like i needed to add to my compose yaml file this option:
- TRUSTED_PROXIES=*

Now the page loads correctly but when i wan to open as a not logged user an album that is set to public and password protected i get this:
image

from lychee-docker.

ildyria avatar ildyria commented on September 18, 2024

BTW from the broken thumbnails, it seems that your APP_URL are not set properly or that you have LYCHEE_UPLOAD_URL= left empty in your .env.

from lychee-docker.

sloniupl avatar sloniupl commented on September 18, 2024

On some lychee galleries that i host i had to also do fastcgi_param HTTPS on; in manually /etc/nginx/nginx.conf as suggested here:
LycheeOrg/Lychee#2106 (comment)
Despite already adding TRUSTED_PROXIES=* in my compose yaml file.
After doing those two things my galleries started working with only the password protected issue that you are working on already.

Hope this info will help and maybe we can add fastcgi_param HTTPS on; to nginx.conf

from lychee-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.