Skip to content

Gotify /stream does not work in reverse proxy of nginx #759

@kennysamuerto

Description

@kennysamuerto

Have you read the documentation?

  • [x ] Yes, but it does not include related information regarding my question.
  • Yes, but the steps described in the documentation do not work on my machine.
  • Yes, but I am having difficulty understanding it and want clarification.

You are setting up gotify in

  • Docker
  • [x ] Linux native platform
  • Windows native platform

Describe your problem

Hello, I am using Gotify on a Proxmox LXC, and everything works well. From other Proxmox instances, I can send notifications, and they arrive perfectly to Gotify. I have it exposed with an https URL through nginx proxy manager. I have WebSockets set as active. I can access Gotify without issues as I mentioned and work with it.

The problem arises because I need a plugin that connects to the API to also send notifications to PushOver.

This plugin gives me a 404 error when trying to connect to my url/stream, and when tested from the browser, the issue persists. I have tried configuring a location /stream in the advanced tab of my nginx proxy manager, without success:

location /stream {
    proxy_pass http://192.168.178.63/stream;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    
    # Importante: mantener el host original
    proxy_set_header Host $http_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_buffering off;
    proxy_cache off;
    
    # No redirects
    proxy_redirect off;
    
    # Extended timeouts
    proxy_read_timeout 3600;
    proxy_send_timeout 3600;
}

I don't know what else to do, because there's no way to connect to /stream with nginx proxy manager over https. Any suggestions?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions