| From: | Jared Vacanti <jaredvacanti(at)gmail(dot)com> |
|---|---|
| To: | pgadmin-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Serving pgadmin4 from subdirectory (e.g. example.com/pgadmin4) |
| Date: | 2018-11-14 19:14:18 |
| Message-ID: | CAJ49pGbuViWntfPOt3=yGZENfgH6-0bKH6ReDpyN5iqtyxJVhQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
Is it possible to serve pgadmin4 from a subdirectory instead of at root
level? It's easy to serve at pgadmin.example.com - but how about at
example.com/pgadmin4 ? Is there any way to set a baseurl at the pgadmin
level?
It looks like two other routes are requested - /static/ and /browser/ -
that will break the app because they'll be requested at example.com/static/
instead of example.com/pgadmin4/static/ which is desired. It seems like as
long as other applications don't need these subdirectories then pgadmin4
can own them without impacting other services, but it's not a good
long-term solution. Then in nginx I can route /static/ and /browser/
directories at the root level to the pgadmin backend, but this is a hack.
Is there any way to serve pgadmin4 from a subdirectory or to change the
base_url that is used for the requests in the js/html?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Page | 2018-11-14 21:39:18 | Re: Serving pgadmin4 from subdirectory (e.g. example.com/pgadmin4) |
| Previous Message | Dave Page | 2018-11-14 13:41:31 | Re: [pgAdmin4][Patch]: RM #3746 Message "Error Dropping procedure/Function" displayed when drop procedure and functions with drop and drop cascade option under properties section |