Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url prefix #34

Open
kdesjard opened this issue Mar 5, 2024 · 2 comments
Open

url prefix #34

kdesjard opened this issue Mar 5, 2024 · 2 comments

Comments

@kdesjard
Copy link
Contributor

kdesjard commented Mar 5, 2024

It would be useful to be able to have a url prefix configuration parameter in the case where an upstream load balancer may be using that prefix to send traffic to the bbox service.

pygeoapi has a similar config item:

api_rules:  # optional API design rules to which pygeoapi should adhere
      url_prefix: 'v{api_major}'  # adds a /v1 prefix to all URL paths

This could be accomplished using Actix's Scope mechanism.

@pka
Copy link
Contributor

pka commented Mar 6, 2024

I did postpone this, because I wanted to keep the code easy to understand (e.g. paths in metdata). But yes, I'm supporting this.

@kdesjard
Copy link
Contributor Author

kdesjard commented Mar 6, 2024

If relative links are kept, then I suppose the prefix could be extracted from the public_server_url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants