-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GOVCMSD8-363] Tweaks to nginx helpers (#44)
* Add numeric prefix to helpers inline with Amazee base image. * Add include directives to expires location to allow additional config to be loaded.
- Loading branch information
Showing
3 changed files
with
4 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
.docker/images/nginx/helpers/expires.conf → ...ker/images/nginx/helpers/210-expires.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Only cache binary files for 30 minutes. These are the default allowed file extensions uploads that are not images. | ||
location ~* ^/sites/default/files/.+\.(pdf|doc|docx|txt|xls|xlsx|ppt|pptx|pps|ppsx|odt|ods|odp|mp3|mov|mp4|m4a|m4v|mpeg|avi|ogg|oga|ogv|weba|webp|webm)$ { | ||
include /etc/nginx/conf.d/drupal/location_expires_prepend*.conf; | ||
|
||
expires ${BINARY_FILES_EXPIRES:-1800s}; | ||
|
||
include /etc/nginx/conf.d/drupal/location_expires_append*.conf; | ||
} |
File renamed without changes.