-
-
Save jahid32/7dfbc909208b3aa3b09cdc3ff2cf8917 to your computer and use it in GitHub Desktop.
Local NGINX WordPress Media Uploads Fallback. Substitute {PROD} for the domain to use images from.
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