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

Endpoint mappings working #205

Merged
merged 7 commits into from
Apr 28, 2024
Merged

Endpoint mappings working #205

merged 7 commits into from
Apr 28, 2024

Conversation

plor
Copy link
Contributor

@plor plor commented Apr 27, 2024

The product table is looked up (and cached) for each request to get the mapping from subdomain to poktId used for gatewaykit. This also includes some rate limiting work, though that isn't complete (non breaking WIP).

This also includes a refactor of configuration, since it was starting to get a little messy.

@plor plor requested a review from wtfsayo April 27, 2024 22:35
@plor plor linked an issue Apr 27, 2024 that may be closed by this pull request
@plor
Copy link
Contributor Author

plor commented Apr 27, 2024

Note, this adds a new ENV variable for the host the gateway is on, without it the subdomain proxying will only work on localhost (default value). *.host will be proxied and * will be turned into poktId after lookup.

@wtfsayo wtfsayo merged commit ef5c01f into develop Apr 28, 2024
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

Successfully merging this pull request may close these issues.

Set up subdomain handler on proxy
2 participants