OneUptime / oneuptime

OneUptime is the complete open-source observability platform.
https://oneuptime.com
Apache License 2.0
4.83k stars 227 forks source link

How to proxy #1744

Open thenitai opened 2 weeks ago

thenitai commented 2 weeks ago

Hi,

Can you please let us know how to proxy a status page with for instance nginx? I don't mean to proxy on the same server or within the app, I mean from another nginx instance.

Usually it can be done with:

location / {
        proxy_set_header Host oneuptimehost;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $host;
        proxy_redirect off;
        proxy_pass http://oneuptimehost/status-page/(thestatuspageid);
    }

However, with Oneuptime it fails to work with errors of loading resources, etc.

Your help us much appreciated.