Relly struggeling getting my nginx reverse proxy to work with nextcloud docker container

Hey,

triying to reverse proxy my running nextcloud enviroment just on port 80 (no SSL) because its just a test enviroment and i have no certificate . Nginx default page working . Nextcloud working can acess it through 10.0.100.6:8080

But 10.0.100.6/nextcloud not working giving me nginx error. Did i miss something. Does i have to configure anything in the next cloud container?

Here is my nginx conf for nextcloud:


server {
  listen 80;
  listen [::]:80;
  server_name localhost;

  location / {
    root /usr/share/nginx/html;
    index index.html index.htm;
  }

  location /nextcloud {
    proxy_pass http://10.0.100.6:8080/;
    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_set_header X-Forwarded-Proto $scheme;
  }

  error_page 500 502 503 504 /50x.html;
  location = /50x.html {
    root /usr/share/nginx/html;
  }
}


So i got my reverse Proxy configuration for nginx done but now rly strugelling with conf.php i will discuss in a new thread:

Here is my nginx configuration file:

server {
    server_name localhost;
    large_client_header_buffers 4 16k;


     location /nc {
    proxy_set_header  Host $host;
    proxy_set_header  X-Real-IP $remote_addr;
    proxy_set_header  X-Forwarded-Proto http;
    proxy_set_header  X-Forwarded-Host $remote_addr;
    proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://10.0.100.6:8080;

    }

     location /wordpress {
    proxy_set_header  Host $host;
    proxy_set_header  X-Real-IP $remote_addr;
    proxy_set_header  X-Forwarded-Proto http;
    proxy_set_header  X-Forwarded-Host $remote_addr;
    proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://10.0.100.6:8888;

    }

    location /.well-known/carddav {
      return 301 $scheme://$host/remote.php/dav;
    }

    location /.well-known/caldav {
      return 301 $scheme://$host/remote.php/dav;
    }

    listen [::]:80;
    listen 80;
}