Skip to content

Commit

Permalink
Merge pull request from GHSA-2rh5-jvgx-pgw3
Browse files Browse the repository at this point in the history
Co-authored-by: Gunnstein Lye <gunnstein.lye@ibexa.co>
(cherry picked from commit 5ccf2b5)
  • Loading branch information
glye committed Sep 14, 2021
1 parent ce18143 commit 909d25f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .platform.app.yaml
Expand Up @@ -62,10 +62,35 @@ web:
passthru: "/app.php"
# The number of seconds whitelisted (static) content should be cache
expires: 600
# Deny by default, allow in rules below as necessary
allow: false
rules:
# This appears redundant, but looks can be deceiving.
# Disable .php(3) and other executable extensions in the var directory
'^/var/.*(?i)\.(php3?|phar|phtml|sh|exe|pl|bin)$':
allow: false
# Serve storage/images|images-versioned directly
'^/var/([^/]+/)?storage/images(-versioned)?/.*':
allow: true
'^/favicon\.ico':
allow: true
'^/robots\.txt':
allow: true
'^/bundles/':
allow: true
'^/assets/':
allow: true
'^/design/':
allow: true
'^/extension/[^/]+/design([/?]|$)':
allow: true
'^/var/[^/]+/cache/public([/?]|$)':
allow: true
'^/share/icons/':
allow: true
# Comment this if in "dev" mode
'^/(css|js|fonts?)/.*\.(css|js|otf|eot|ttf|svg|woff)':
allow: true

# The size of the persistent disk of the application (in MB).
disk: 3072
Expand Down

0 comments on commit 909d25f

Please sign in to comment.