From df11ac6b970fc19bb41fbc1efff8597adce81b30 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 9 Jun 2020 19:37:07 +0100 Subject: [PATCH] Add and configure Stage File Proxy locally Fixes #116 --- composer.json | 1 + composer.lock | 78 ++++++++++++++++++- .../config_split.config_split.live.yml | 1 + config/default/core.extension.yml | 1 + config/default/stage_file_proxy.settings.yml | 7 ++ .../splits/live/stage_file_proxy.settings.yml | 7 ++ 6 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 config/default/stage_file_proxy.settings.yml create mode 100644 config/splits/live/stage_file_proxy.settings.yml diff --git a/composer.json b/composer.json index eb1b0a7..109d490 100644 --- a/composer.json +++ b/composer.json @@ -39,6 +39,7 @@ "drupal/redirect": "^1.5", "drupal/simple_sitemap": "^3.6", "drupal/speakerdeck_field": "^1.0", + "drupal/stage_file_proxy": "^1.0", "drush/drush": "^9", "illuminate/support": "^7.10", "nesbot/carbon": "^2.33" diff --git a/composer.lock b/composer.lock index 8d74148..4d1afb8 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3d5af6646a41b9fc61c466fac62d81a9", + "content-hash": "050b8d1d1a62edd680fadc466137d20f", "packages": [ { "name": "asm89/stack-cors", @@ -3417,6 +3417,78 @@ "source": "https://git.drupalcode.org/project/speakerdeck_field" } }, + { + "name": "drupal/stage_file_proxy", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/stage_file_proxy.git", + "reference": "8.x-1.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/stage_file_proxy-8.x-1.0.zip", + "reference": "8.x-1.0", + "shasum": "f101a07e0096f476c91cf23137469a5c5c18e2df" + }, + "require": { + "drupal/core": ">=8.7.7" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.0", + "datestamp": "1580492032", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "BarisW", + "homepage": "https://www.drupal.org/user/107229" + }, + { + "name": "geek-merlin", + "homepage": "https://www.drupal.org/user/229048" + }, + { + "name": "greggles", + "homepage": "https://www.drupal.org/user/36762" + }, + { + "name": "markdorison", + "homepage": "https://www.drupal.org/user/346106" + }, + { + "name": "moshe weitzman", + "homepage": "https://www.drupal.org/user/23" + }, + { + "name": "msonnabaum", + "homepage": "https://www.drupal.org/user/75278" + }, + { + "name": "netaustin", + "homepage": "https://www.drupal.org/user/199298" + }, + { + "name": "robwilmshurst", + "homepage": "https://www.drupal.org/user/144488" + } + ], + "description": "Provides stage_file_proxy module.", + "homepage": "https://www.drupal.org/project/stage_file_proxy", + "support": { + "source": "https://git.drupalcode.org/project/stage_file_proxy" + } + }, { "name": "drupal/token", "version": "1.6.0", @@ -3640,12 +3712,12 @@ "version": "0.9.1", "source": { "type": "git", - "url": "https://github.com/njh/easyrdf.git", + "url": "https://github.com/easyrdf/easyrdf.git", "reference": "acd09dfe0555fbcfa254291e433c45fdd4652566" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/njh/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566", + "url": "https://api.github.com/repos/easyrdf/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566", "reference": "acd09dfe0555fbcfa254291e433c45fdd4652566", "shasum": "" }, diff --git a/config/default/config_split.config_split.live.yml b/config/default/config_split.config_split.live.yml index c93437b..c1e64aa 100644 --- a/config/default/config_split.config_split.live.yml +++ b/config/default/config_split.config_split.live.yml @@ -8,6 +8,7 @@ description: '' folder: ../config/splits/live module: fathom_analytics: 0 + stage_file_proxy: 0 theme: { } blacklist: - fathom_analytics.settings diff --git a/config/default/core.extension.yml b/config/default/core.extension.yml index 916f744..c295b27 100644 --- a/config/default/core.extension.yml +++ b/config/default/core.extension.yml @@ -45,6 +45,7 @@ module: simple_sitemap: 0 simple_sitemap_engines: 0 speakerdeck_field: 0 + stage_file_proxy: 0 syslog: 0 system: 0 taxonomy: 0 diff --git a/config/default/stage_file_proxy.settings.yml b/config/default/stage_file_proxy.settings.yml new file mode 100644 index 0000000..5ddcd44 --- /dev/null +++ b/config/default/stage_file_proxy.settings.yml @@ -0,0 +1,7 @@ +hotlink: true +origin: 'https://www.oliverdavies.uk' +origin_dir: sites/default/files +use_imagecache_root: true +verify: true +_core: + default_config_hash: wB2h-QBawANCiCVEXy6bJjiDfvZY6EONZ6-wRB_RYQc diff --git a/config/splits/live/stage_file_proxy.settings.yml b/config/splits/live/stage_file_proxy.settings.yml new file mode 100644 index 0000000..e380afe --- /dev/null +++ b/config/splits/live/stage_file_proxy.settings.yml @@ -0,0 +1,7 @@ +hotlink: false +origin: '' +origin_dir: '' +use_imagecache_root: true +verify: true +_core: + default_config_hash: wB2h-QBawANCiCVEXy6bJjiDfvZY6EONZ6-wRB_RYQc