Giter Club home page Giter Club logo

Comments (6)

nyurik avatar nyurik commented on June 2, 2024 1

@sharkAndshark I just updated this ticket with all the details needed

from martin.

sharkAndshark avatar sharkAndshark commented on June 2, 2024

Do we need to add it to config either?

from martin.

sutanAE avatar sutanAE commented on June 2, 2024

Do we need to add it to config either?

It would be nice to add this on config.

In my experience, I put Martin behind NGINX and use the proxy_pass directive, and rewrite the basepath. the SSL can be handled on NGINX as well. This works with /tablename/{z}/{x}/{y}, however, this won't work with the tile.json because there is no base path for martin. If we could add this, then it would be so nice!

from martin.

nyurik avatar nyurik commented on June 2, 2024

Yep, I documented it above for both CLI and config file case. @sutanAE, if you use NGINX, why not use rewriting urls config?

from martin.

nyurik avatar nyurik commented on June 2, 2024

Should this feature ignore X-REWRITE-URL header if it is set? I.e. override it? Or should it only work if there is no x-rewrite-url header? What usecases would there be for its usage?

from martin.

sutanAE avatar sutanAE commented on June 2, 2024

Yep, I documented it above for both the CLI and config file cases. @sutanAE, if you use NGINX, why not use rewriting urls config?

Hi @nyurik thank you. That is because I did not read the documentation correctly; my apologies.

It seems like the problem is now solved for me. Either way, I think it would still be nice to have something that acts as a base path for Martin. The only thing I can think of is why the developer experience and local development imitates NGINX configuration.

I personally develop my app using Node.js with SvelteKit and have Martin running on another port. Martin's URL in localhost and production is different, so the SvelteKit's code is quite messy; there are lots of if statements to see if it's in dev or in prod. Of course, this could be avoided using environment variables, but this limits Martin to certain styles.

I hope I am contributing to the discussion—many thanks for developing such amazing software.

from martin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.