Created
April 6, 2023 18:00
-
-
Save modemlooper/bf9a180b151ed0320c7e005246b73489 to your computer and use it in GitHub Desktop.
Load WordPress media from prod NGINX
This file contains 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
location ~* ^.+\.(svg|svgz|jpg|jpeg|gif|png|ico|bmp)$ { | |
try_files $uri @image_fallback; | |
} | |
location @image_fallback { | |
proxy_pass http://{PROD}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment