-
-
Notifications
You must be signed in to change notification settings - Fork 349
Configurable url for running Martin through a proxy/cloudfront #2524
Description
Conversation from slack about the need for changing the host url as well
Lex [11:26 PM]I have a question on hosting Martin on Lambda.My current setup is Client (example.com) > Cloudfront > Lambda. However, Martin on Lambda returns
{"tilejson":"3.0.0","tiles":["https:<lambda_url>/path/{z}/{x}/{y}"]...}
The client now thinks it should send the subsequent requests to the lambda_url . However, it should keep sending the requests to the host (example.com )Is there already a way to configure the host name? Or am I looking at this in the wrong way? Otherwise I guess we could create a configuration option to explicitly set the host name (here?)) I don’t have any Rust experience, but if that is the case I can try to implement this.
Birk Skyum [11:33 PM]I could use something like that as well. I have a client -> proxy web service (observability/billing/analytics/caching) -> martin server, and have to do a find/replace of the url martin provides in the response, to make sure the client will request the proxy server instead of hitting the martin server directly.