Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to use external nginx reverse proxy #458

Closed
1 task done
wx2020 opened this issue Jul 20, 2024 · 4 comments
Closed
1 task done

[BUG] Unable to use external nginx reverse proxy #458

wx2020 opened this issue Jul 20, 2024 · 4 comments

Comments

@wx2020
Copy link

wx2020 commented Jul 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I use linuxserver/docker-nextcloud image in my Unraid. I also use nginx on my Ubuntu server, which opened port 9443. I want to access nginx from the outside through port 9443, and then proxy access to nextcloud, but nginx always lost my port number.

Expected Behavior

Nginx doesn't lost my port number.

Steps To Reproduce

Access my domain to my nextcloud

Environment

- OS: Unraid
- How docker service was installed: Docker-compose

CPU architecture

x86-64

Docker creation

nextcloud:
      image: lscr.io/linuxserver/nextcloud:latest
      container_name: nextcloud
      environment:
        - PUID=1000
        - PGID=100
      volumes:
        - /mnt/cache/appdata/nextcloud:/config
        - /mnt/user/others/nextcloud:/data
      ports:
        - 9090:80
      restart: unless-stopped
      logging:
        driver: json-file
        options:
          max-size: 1m

Container logs

My Outer Nginx config:

    location / {
        proxy_pass http://192.168.100.100:9090;
        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;
        proxy_set_header X-Forwarded-Protocol $scheme;
        proxy_set_header X-Forwarded-Host $http_host;

        proxy_buffering off;
    }

What configuration do I need to modify?

Copy link

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

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@drizuid
Copy link
Member

drizuid commented Oct 4, 2024

We do not provide support for reverse proxies other than our own. I believe nextcloud has documentation on how to properly reverse proxy this application. You are welcome to look in our reverse proxy confs https://github.com/linuxserver/reverse-proxy-confs/blob/master/nextcloud.subdomain.conf.sample, note that you'll also need to check the includes within swag, to determine how we handle this.

closing as out of scope.

@drizuid drizuid closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

3 participants