Skip to content

Commit 62865d6

Browse files
authored
Merge pull request #439 from wunderio/feature/QAG-63
QAG-63: (feat) Add and configure config_split, updates_log, stage_file_proxy modules
2 parents 3cf704d + 7ff8f00 commit 62865d6

20 files changed

+944
-6
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ This project is a tailored fork of the popular [drupal-composer template](https:
2020
- For DDEV: Update project settings in `.ddev/config.yaml`
2121
- For Lando: Update project settings in `.lando.yml`
2222
- Update project name in `scripts/syncdb.sh` for database synchronization
23+
- Adjust `web/sites/default/settings.php` settings (`stage_file_proxy` etc)
24+
- Adjust `config_split` settings for silta (default), production, main, local environments
2325

2426
3. **Set up CircleCI**
2527
- Log in to [CircleCI](https://app.circleci.com/) using your GitHub account.
@@ -88,8 +90,11 @@ This project supports two local development environments: DDEV (preferred) and L
8890
# See `scripts/syncdb.sh` for options
8991
ddev syncdb
9092

93+
# Apply configuration changes
94+
ddev drush deploy
95+
9196
# Get a one-time login link for admin access
92-
drush uli
97+
ddev drush uli
9398
```
9499

95100
Note: All commands in the DDEV section should be run within the DDEV environment using `ddev` prefix (e.g., `ddev drush uli`), or by using `ddev ssh` to access the container shell first.

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@
1919
"composer/installers": "^2.3",
2020
"cweagans/composer-patches": "^1.7",
2121
"drupal/admin_toolbar": "^3.5",
22+
"drupal/config_split": "^2.0",
2223
"drupal/core-composer-scaffold": "^11.1",
2324
"drupal/core-recommended": "^11.1",
2425
"drupal/monolog": "^3.0",
2526
"drupal/purge": "^3.6",
2627
"drupal/simplei": "^3.0",
28+
"drupal/stage_file_proxy": "^3.1",
2729
"drupal/varnish_purge": "^2.3",
2830
"drush/drush": "^13.3",
2931
"vlucas/phpdotenv": "^5.6",
30-
"wunderio/drupal-ping": "^2.5"
32+
"wunderio/drupal-ping": "^2.5",
33+
"wunderio/updates_log": "^2.5"
3134
},
3235
"require-dev": {
3336
"drupal/core-dev": "^11.1",

config/local/.htaccess

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Deny all requests from Apache 2.4+.
2+
<IfModule mod_authz_core.c>
3+
Require all denied
4+
</IfModule>
5+
6+
# Deny all requests from Apache 2.0-2.2.
7+
<IfModule !mod_authz_core.c>
8+
Deny from all
9+
</IfModule>
10+
11+
# Turn off all options we don't need.
12+
Options -Indexes -ExecCGI -Includes -MultiViews
13+
14+
# Set the catch-all handler to prevent scripts from being executed.
15+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
16+
<Files *>
17+
# Override the handler again if we're run later in the evaluation list.
18+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
19+
</Files>
20+
21+
# If we know how to do it safely, disable the PHP engine entirely.
22+
<IfModule mod_php.c>
23+
php_flag engine off
24+
</IfModule>
File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
_core:
2+
default_config_hash: LqXuXXQCTd1NWw7dGLef0PCi3_aEEWQuogAblo4hHaE
3+
hotlink: false
4+
origin: ''
5+
origin_dir: ''
6+
use_imagecache_root: true
7+
proxy_headers: ''
8+
verify: true
9+
excluded_extensions: ''
File renamed without changes.

config/main/.htaccess

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Deny all requests from Apache 2.4+.
2+
<IfModule mod_authz_core.c>
3+
Require all denied
4+
</IfModule>
5+
6+
# Deny all requests from Apache 2.0-2.2.
7+
<IfModule !mod_authz_core.c>
8+
Deny from all
9+
</IfModule>
10+
11+
# Turn off all options we don't need.
12+
Options -Indexes -ExecCGI -Includes -MultiViews
13+
14+
# Set the catch-all handler to prevent scripts from being executed.
15+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
16+
<Files *>
17+
# Override the handler again if we're run later in the evaluation list.
18+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
19+
</Files>
20+
21+
# If we know how to do it safely, disable the PHP engine entirely.
22+
<IfModule mod_php.c>
23+
php_flag engine off
24+
</IfModule>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
_core:
2+
default_config_hash: LqXuXXQCTd1NWw7dGLef0PCi3_aEEWQuogAblo4hHaE
3+
hotlink: false
4+
origin: ''
5+
origin_dir: ''
6+
use_imagecache_root: true
7+
proxy_headers: ''
8+
verify: true
9+
excluded_extensions: ''

config/production/.htaccess

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Deny all requests from Apache 2.4+.
2+
<IfModule mod_authz_core.c>
3+
Require all denied
4+
</IfModule>
5+
6+
# Deny all requests from Apache 2.0-2.2.
7+
<IfModule !mod_authz_core.c>
8+
Deny from all
9+
</IfModule>
10+
11+
# Turn off all options we don't need.
12+
Options -Indexes -ExecCGI -Includes -MultiViews
13+
14+
# Set the catch-all handler to prevent scripts from being executed.
15+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
16+
<Files *>
17+
# Override the handler again if we're run later in the evaluation list.
18+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
19+
</Files>
20+
21+
# If we know how to do it safely, disable the PHP engine entirely.
22+
<IfModule mod_php.c>
23+
php_flag engine off
24+
</IfModule>

0 commit comments

Comments
 (0)