NGINX - CORS with a single if
Configuring NGINX CORS with a single if using maps and add_header directives.
Senior Principal Engineer - DevOps @ Flutter Entertainment Plc
I write about DevOps, the parts of the stack nobody notices until they stop working, and lately about homelab AI and LLM inference infrastructure.
Configuring NGINX CORS with a single if using maps and add_header directives.
Configuring Consul to work around getaddrinfo's implementation of RFC3484, which breaks DNS round robin.
Configuring NGINX+ modules to create a replicated key-value store using the mirror module.
NGINX+ mirror module purges cache for non-GET requests using the purge option and $uri variables.
Configuring NGINX to generate and forward a unique X-Request-ID header to upstream servers.
Implementing NGINX+ chained PURGE using Lua and Consul to dynamically update upstream server lists.
Configuring NGINX's proxy_cache_bypass directive to conditionally bypass caching and update cache entries.
Configuring imapfilter with Lua scripts to automate mailbox cleanup and Gmail management tasks.
Configuring NGINX using the map command for conditional logic and variable manipulation.
Using NGINX's geo command to match network blocks and route traffic to different upstreams or apply rate limits.