Giter Site home page Giter Site logo

Comments (18)

jiriks74 avatar jiriks74 commented on June 8, 2024 1

Got rid of it by modifying the compose file. The setup I used as a base had a hostname defined and that's why it resolved to the container and not the proxy.

from server.

0x09AF avatar 0x09AF commented on June 8, 2024 1

I don't have hostname configured in my compose file, but got this error after upgrading to 29. Is there another fix?

from server.

jiriks74 avatar jiriks74 commented on June 8, 2024 1

What is your setup. Like is the server local, behind proxy, etc. What IP is the container resolving the hostbame to? (Run dig your.domain inside the container)

from server.

warioishere avatar warioishere commented on June 8, 2024 1

I dont use docker, just plain selft installation

from server.

joshtrichards avatar joshtrichards commented on June 8, 2024

Do each of your configured trusted_domains resolve to your proxy/TLS terminator from the perspective of your Nextcloud Server? That is, if you run curl from within your Nextcloud Docker container does it hit your proxy (and therefore see those headers)? That's the most common culprit since most of the tests are running from the server itself rather than you're browser these days.

from server.

jiriks74 avatar jiriks74 commented on June 8, 2024

For whatever reason dig running directly from the container resolves to the container IP rather than the public one.

from server.

mikesteele81 avatar mikesteele81 commented on June 8, 2024

I have the same problem. With Nextcloud 28 I made sure that the self-test would hit the reverse proxy's internal address by including an entry within /etc/hosts to override what DNS would otherwise provide.

from server.

VPaulV avatar VPaulV commented on June 8, 2024

I have the same issue. Could you please provide instructions on how to fix it?

from server.

jiriks74 avatar jiriks74 commented on June 8, 2024

I have the same issue. Could you please provide instructions on how to fix it?

Like I said, remove/change the hostname: nextcloud.somedomain.eufrom your compose file

from server.

0x09AF avatar 0x09AF commented on June 8, 2024

@jiriks74 I am not too sure if I have the exact same error but the symptoms are similar, appeared after upgrading to v29. Here's the error: Could not check that your web server serves security headers correctly, unable to query `` For more details see the documentation ↗
dig inside the container resolves the same as from the outside - to Cloudflare IPs

from server.

wvxx avatar wvxx commented on June 8, 2024

I'm having the same issue since upgrading to 29, dig ran from within the container resolves to my public IP address, I've no hostname set on my container as well, trusted proxies are set properly.

Any ideas? ;)
Thanks.

from server.

jiriks74 avatar jiriks74 commented on June 8, 2024

@0x09AF

unable to query ``

This seems like Nextcloud doesn't have it's hostname set properly?

I've no hostname set on my container as well, trusted proxies are set properly.

If it's the same error I suspect that Nextcloud doesn't know it's url and you cannot query an empty string


What are your proxy settings?

from server.

wvxx avatar wvxx commented on June 8, 2024

If it's the same error I suspect that Nextcloud doesn't know it's url and you cannot query an empty string

What are your proxy settings?

I might have expressed myself a bit unclearly. I mean that I get the warnings in my nextcloud admin settings despite curl telling me that all headers are enabled.

image

I have trusted_proxies set to IP of my traefik container as well as public IP, like I said above dig ran from the nextcloud container shows my public IP address.

from server.

0x09AF avatar 0x09AF commented on June 8, 2024

@0x09AF

unable to query ``

This seems like Nextcloud doesn't have it's hostname set properly?
My docker-compose hasn't changed in a few years I have been running Nextcloud. Could you point me to the right env variable or a line in config.php?
Thanks

from server.

warioishere avatar warioishere commented on June 8, 2024

I am also having this issue, baremetal nextcloud installation. I dont havy any ReverseProxy infront of my NC
they headers are set if i curl my domain.

from server.

tuxArg avatar tuxArg commented on June 8, 2024

Hi, I've just had this message too. I solved it allowing container IP login in limit_login_to_ip app. I hope it helps.

from server.

xundeenergie avatar xundeenergie commented on June 8, 2024

Same here. Plain installation without container... and i get the same warnings Since upgrade to 29.

from server.

lexxxel avatar lexxxel commented on June 8, 2024

same, I run nextcloud from a lxc container and checked with curl - everything looks OK from there. (My reverse proxy is also traefik on another lxc container somewhere in the network)

from server.

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.