Skip to content

HTTP serving on non-root directory #40

@amotl

Description

@amotl

Hi @surister,

thanks a stack for conceiving cratedb-admin-alt. It is well received, because the existing admin interface of CrateDB is using outdated technologies.

Using the Compose+Nginx configurations outlined below, I am trying to serve crate-admin-alt on a non-empty URL path, because it needs to be served side-by-side to other applications on the same URL namespace, like Grafana, JupyterLab, Marimo, etc.

With the current setup, I have been able to make it work using a), but b) does not work.

a) http://localhost:4201/
b) http://localhost:8080/admin/

Maybe you can do something to improve the situation, i.e. use relative URLs to reference assets?

With kind regards,
Andreas.

NB: After possibly fixing this, the OCI image at surister/cratedbaltadmin:latest would need to be updated, so downstream applications can continue consuming your application easily. Thank you so much!

Appendix

Find miniature rig's compose.yml and nginx.conf files here: https://gist.github.com/amotl/0db40a5abc91cd9ae5a06051b7c215da.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions