Apply automatic drupal scaffolding updates
This commit is contained in:
parent
ca7b46d5ad
commit
7831090033
6 changed files with 31 additions and 17 deletions
14
.ddev/.gitignore
vendored
14
.ddev/.gitignore
vendored
|
@ -9,7 +9,9 @@
|
||||||
/.*downloads
|
/.*downloads
|
||||||
/.global_commands
|
/.global_commands
|
||||||
/.homeadditions
|
/.homeadditions
|
||||||
|
/.importdb*
|
||||||
/.sshimageBuild
|
/.sshimageBuild
|
||||||
|
/.venv
|
||||||
/.webimageBuild
|
/.webimageBuild
|
||||||
/.webimageExtra
|
/.webimageExtra
|
||||||
/apache/apache-site.conf
|
/apache/apache-site.conf
|
||||||
|
@ -18,13 +20,19 @@
|
||||||
/commands/host/launch
|
/commands/host/launch
|
||||||
/commands/web/xdebug
|
/commands/web/xdebug
|
||||||
/commands/web/live
|
/commands/web/live
|
||||||
/config.*.y*ml
|
/config.local.y*ml
|
||||||
/db_snapshots
|
/db_snapshots
|
||||||
/import-db
|
/import-db
|
||||||
/import.yaml
|
/import.yaml
|
||||||
/mutagen
|
/mutagen/mutagen.yml
|
||||||
|
/mutagen/.start-synced
|
||||||
/nginx_full/nginx-site.conf
|
/nginx_full/nginx-site.conf
|
||||||
/postgres/postgresql.conf
|
/postgres/postgresql.conf
|
||||||
|
/providers/platform.yaml
|
||||||
/sequelpro.spf
|
/sequelpro.spf
|
||||||
/xhprof
|
/settings/settings.ddev.py
|
||||||
|
/traefik/config/geo.yaml
|
||||||
|
/traefik/certs/geo.crt
|
||||||
|
/traefik/certs/geo.key
|
||||||
|
/xhprof/xhprof_prepend.php
|
||||||
/**/README.*
|
/**/README.*
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## #ddev-generated
|
|
||||||
## Description: run mysql client in db container
|
|
||||||
## Usage: mysql [flags] [args]
|
|
||||||
## Example: "ddev mysql" or "ddev mysql -uroot -proot" or "echo 'SHOW TABLES;' | ddev mysql"
|
|
||||||
## `ddev mysql --database=mysql -uroot -proot` gets you to the 'mysql' database with root privileges
|
|
||||||
|
|
||||||
mysql -udb -pdb $@
|
|
|
@ -24,6 +24,12 @@
|
||||||
* @see http://php.net/manual/en/features.commandline.webserver.php
|
* @see http://php.net/manual/en/features.commandline.webserver.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (PHP_SAPI !== 'cli-server') {
|
||||||
|
// Bail out if this is not PHP's Development Server.
|
||||||
|
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$url = parse_url($_SERVER['REQUEST_URI']);
|
$url = parse_url($_SERVER['REQUEST_URI']);
|
||||||
if (file_exists(__DIR__ . $url['path'])) {
|
if (file_exists(__DIR__ . $url['path'])) {
|
||||||
// Serve the requested resource as-is.
|
// Serve the requested resource as-is.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Protect files and directories from prying eyes.
|
# Protect files and directories from prying eyes.
|
||||||
<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
|
<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
|
||||||
<IfModule mod_authz_core.c>
|
<IfModule mod_authz_core.c>
|
||||||
Require all denied
|
Require all denied
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
@ -32,12 +32,17 @@ AddEncoding gzip svgz
|
||||||
php_value assert.active 0
|
php_value assert.active 0
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
# PHP 8, Apache 1 and 2.
|
||||||
|
<IfModule mod_php.c>
|
||||||
|
php_value assert.active 0
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
# Requires mod_expires to be enabled.
|
# Requires mod_expires to be enabled.
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
# Enable expirations.
|
# Enable expirations.
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
|
|
||||||
# Cache all files for 2 weeks after access (A).
|
# Cache all files and redirects for 2 weeks after access (A).
|
||||||
ExpiresDefault A1209600
|
ExpiresDefault A1209600
|
||||||
|
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
|
@ -153,12 +158,12 @@ AddEncoding gzip svgz
|
||||||
# Serve gzip compressed CSS files if they exist and the client accepts gzip.
|
# Serve gzip compressed CSS files if they exist and the client accepts gzip.
|
||||||
RewriteCond %{HTTP:Accept-encoding} gzip
|
RewriteCond %{HTTP:Accept-encoding} gzip
|
||||||
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
||||||
RewriteRule ^(.*)\.css $1\.css\.gz [QSA]
|
RewriteRule ^(.*css_[a-zA-Z0-9-_]+)\.css$ $1\.css\.gz [QSA]
|
||||||
|
|
||||||
# Serve gzip compressed JS files if they exist and the client accepts gzip.
|
# Serve gzip compressed JS files if they exist and the client accepts gzip.
|
||||||
RewriteCond %{HTTP:Accept-encoding} gzip
|
RewriteCond %{HTTP:Accept-encoding} gzip
|
||||||
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
||||||
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
RewriteRule ^(.*js_[a-zA-Z0-9-_]+)\.js$ $1\.js\.gz [QSA]
|
||||||
|
|
||||||
# Serve correct content types, and prevent double compression.
|
# Serve correct content types, and prevent double compression.
|
||||||
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1]
|
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1]
|
||||||
|
|
|
@ -49,6 +49,8 @@ Disallow: /user/register
|
||||||
Disallow: /user/password
|
Disallow: /user/password
|
||||||
Disallow: /user/login
|
Disallow: /user/login
|
||||||
Disallow: /user/logout
|
Disallow: /user/logout
|
||||||
|
Disallow: /media/oembed
|
||||||
|
Disallow: /*/media/oembed
|
||||||
# Paths (no clean URLs)
|
# Paths (no clean URLs)
|
||||||
Disallow: /index.php/admin/
|
Disallow: /index.php/admin/
|
||||||
Disallow: /index.php/comment/reply/
|
Disallow: /index.php/comment/reply/
|
||||||
|
@ -59,3 +61,5 @@ Disallow: /index.php/user/password
|
||||||
Disallow: /index.php/user/register
|
Disallow: /index.php/user/register
|
||||||
Disallow: /index.php/user/login
|
Disallow: /index.php/user/login
|
||||||
Disallow: /index.php/user/logout
|
Disallow: /index.php/user/logout
|
||||||
|
Disallow: /index.php/media/oembed
|
||||||
|
Disallow: /index.php/*/media/oembed
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<rewrite>
|
<rewrite>
|
||||||
<rules>
|
<rules>
|
||||||
<rule name="Protect files and directories from prying eyes" stopProcessing="true">
|
<rule name="Protect files and directories from prying eyes" stopProcessing="true">
|
||||||
<match url="\.(engine|inc|install|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format|composer\.(json|lock)|\.htaccess)$" />
|
<match url="\.(engine|inc|install|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format|composer\.(json|lock)|\.htaccess|yarn.lock|package.json)$" />
|
||||||
<action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
|
<action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue