Skip to content

Does not work when using Reverse Proxy #148

@leonetosoft

Description

@leonetosoft

Hello, I must first thank the developers for the spectacular monitoring tool.

Now I need to tell you a problem I'm having to access my metrics from an api that uses proxy.

It works as follows, my api is connected on port 5454 so I put the monitor defining the url:

 dash.attach ({
            url: '/ api / monitor'
        });
Locally worked, however external it does not bring me any monitoring data, it is empty.

My proxy works when the user types my domain name + api.

I use nginx proxy:

location / api {
                proxy_set_header X-Real-IP $ remote_addr;
                proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for;
                proxy_set_header Host $ http_host;
                proxy_set_header X-NginX-Proxy true;
                proxy_pass http: // localhost: 5450;
                proxy_redirect off;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $ http_upgrade;
                proxy_set_header Connection "upgrade";
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions