question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AdminBro behind a reverse proxy server?

See original GitHub issue

Hi,

I have been trying to find it but I am unable to find anything regarding running AdminBro behind a proxy server. Currently, I am running AdminBro NodeJS server behind an Nginx reverse proxy server(traffic from https://example.com/test-server routing to the NodeJS server). My root path for AdminBro is /admin. When I go to https://example.com/test-server/admin I get the following errors in the browser console:

GET https://example.com/test-server/admin/frontend/assets/app.bundle.js net::ERR_ABORTED 404 (Not Found)

Could you please help me figure out what’s happening or what wrong am I doing?

It works on my local matching under http://localhost:5000/admin.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
in-live-mdcommented, Feb 5, 2021

I get around these reverse proxy issues by creating a separate app (using nest easily done within the same webapp). So it gets its own port for adminbro… keeping the incoming app path the same as the downstream app prevents those kind of issues that usually require some rewrite rules.

location /adminbro {
                proxy_pass    http://localhost:3005/adminbro;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
                proxy_cache_bypass $http_upgrade;
        }
0reactions
lovebhardwajcommented, Nov 6, 2020

So my NodeJS server is running with a base URL of www.example.com/sparkstaging/api/ behind Nginx. In admin bro options I have the rootPath: "/database" and loginPath: "/databaselogin". Everytime I go to www.example.com/sparkstaging/api/database I am routed to www.example.com/databaselogin which results in 404.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AdminBro behind a reverse proxy server? - Bountysource
Hi,. I have been trying to find it but I am unable to find anything regarding running AdminBro behind a proxy server.
Read more >
static resources behind a reverse proxy server
Two localhost web servers are developed separately without the knowledge of each other and proxy server. Both setup using NodeJS and ...
Read more >
Behind a reverse proxy | Socket.IO
You will find below the configuration needed for deploying a Socket.IO server behind a reverse-proxy solution, such as: NginX; Apache HTTPD ...
Read more >
Strapi doesn't work behind a reverse proxy #8487 - GitHub
Nevermind, I've got it working with this configuration on ./config/server.js : module.exports = ({ env }) ...
Read more >
Question - Plesk admin interface behind reverse proxy
Hi everyone I'm using plesk behind a reverse proxy as described in ... without manually modifying the nginx config on the server itself?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found