Giter Site home page Giter Site logo

The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud. Further information can be found in the documentation about nextcloud-compose HOT 2 OPEN

bwibo avatar bwibo commented on August 16, 2024
The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud. Further information can be found in the documentation

from nextcloud-compose.

Comments (2)

BWibo avatar BWibo commented on August 16, 2024

Hey there,

I was facing the same issue. I resolved it by looking up the CIDR of the Docker network and add it to the trusted proxies.

Get Docker Nextcloud network settings:

$ docker network inspect nextcloud_net

[
  {
    "Name": "nextcloud_net",
    "Id": "xxxxxxxxxxxxxxxxxxxxxxxxx",
    "Created": "2022-12-17T12:00:22.955222771+01:00",
    "Scope": "local",
    "Driver": "bridge",
    "EnableIPv6": false,
    "IPAM": {
      "Driver": "default",
      "Options": null,
      "Config": [
        {
          "Subnet": "10.18.0.0/16",
          "Gateway": "10.18.0.1"
        }
      ]
    },
    "ConfigFrom": {
      "Network": ""
    },
    "ConfigOnly": false,
    "Containers": {
      "xxxxxxxxxxxxx": {
        "Name": "nextcloud-cron-1",
        "EndpointID": "xxxxxxxxxxxxxxx",
        "MacAddress": "02:42:ac:13:00:06",
        "IPv4Address": "10.18.0.6/16",
        "IPv6Address": ""
      },
      "xxxxxxxxxxxxxxxxxx": {
        "Name": "nextcloud-caddy-1",
        "EndpointID": "xxxxxxxxxxxxxxxxxx",
        "MacAddress": "02:42:ac:13:00:05",
        "IPv4Address": "10.18.0.5/16",
        "IPv6Address": ""
      },
      ...
      ...
      ...

From this you can get the IP of the Caddy container or the CIDR of the nextcloud subnet.
According to docs both should work as trusted_proxies setting.

It's interesting that your config works. According to docs this setting should only allow IP4, IP6 and CIDR addresses and no domain names.

from nextcloud-compose.

BWibo avatar BWibo commented on August 16, 2024

Did it work for you @shad00m ?

from nextcloud-compose.

Related Issues (3)

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.