Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves now-unused Blizzard global rate limit environment variables and their substitution into the Valkey Lua handler template, simplifying the Nginx entrypoint configuration for caching and rate limiting. Flow diagram for updated Nginx entrypoint configuration and Valkey Lua handler generationflowchart TD
subgraph Environment
env_VALKEY_HOST["VALKEY_HOST"]
env_VALKEY_PORT["VALKEY_PORT"]
env_CACHE_TTL_HEADER["CACHE_TTL_HEADER"]
env_RETRY_AFTER_HEADER["RETRY_AFTER_HEADER"]
env_UNKNOWN_PLAYER_COOLDOWN_KEY_PREFIX["UNKNOWN_PLAYER_COOLDOWN_KEY_PREFIX"]
env_UNKNOWN_PLAYERS_CACHE_ENABLED["UNKNOWN_PLAYERS_CACHE_ENABLED"]
end
entrypoint["entrypoint.sh"]
nginx_template["default.conf.template"]
lua_template["valkey_handler.lua.template"]
nginx_conf["default.conf"]
lua_handler["valkey_handler.lua"]
env_to_nginx["envsubst for Nginx config"]
env_to_lua["envsubst for Valkey Lua handler"]
Environment --> entrypoint
entrypoint --> env_to_nginx
entrypoint --> env_to_lua
env_to_nginx --> nginx_template
env_to_nginx --> nginx_conf
env_to_lua --> lua_template
env_to_lua --> lua_handler
env_VALKEY_HOST --> env_to_lua
env_VALKEY_PORT --> env_to_lua
env_CACHE_TTL_HEADER --> env_to_lua
env_RETRY_AFTER_HEADER --> env_to_lua
env_UNKNOWN_PLAYER_COOLDOWN_KEY_PREFIX --> env_to_lua
env_UNKNOWN_PLAYERS_CACHE_ENABLED --> env_to_lua
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Since
BLIZZARD_RATE_LIMIT_KEYandBLIZZARD_RATE_LIMIT_RETRY_AFTERwere removed from env defaults andenvsubst, double-check thatvalkey_handler.lua.templateand any other templates no longer reference these placeholders so we don’t end up with literal${...}strings at runtime.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since `BLIZZARD_RATE_LIMIT_KEY` and `BLIZZARD_RATE_LIMIT_RETRY_AFTER` were removed from env defaults and `envsubst`, double-check that `valkey_handler.lua.template` and any other templates no longer reference these placeholders so we don’t end up with literal `${...}` strings at runtime.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary by Sourcery
Enhancements: