cwp / cwp-core
CWP basic compatibility module. Use for migrations.
Installs: 209 996
Dependents: 6
Suggesters: 0
Security: 0
Stars: 3
Watchers: 11
Forks: 12
Open Issues: 5
Language:JavaScript
Type:silverstripe-vendormodule
Requires
- php: ^8.1
- silverstripe/admin: ^2
- silverstripe/auditor: ^3
- silverstripe/environmentcheck: ^3
- silverstripe/framework: ^5
- silverstripe/hybridsessions: ^3
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3
- 3.x-dev
- 3.0.x-dev
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-rc1
- 3.0.0-beta1
- 2.x-dev
- 2.12.x-dev
- 2.12.2
- 2.12.1
- 2.12.0
- 2.12.0-rc1
- 2.12.0-beta1
- 2.11.x-dev
- 2.11.0
- 2.10.x-dev
- 2.10.0
- 2.9.x-dev
- 2.9.1
- 2.9.0
- 2.8.x-dev
- 2.8.0
- 2.8.0-rc1
- 2.8.0-beta1
- 2.7.x-dev
- 2.7.1
- 2.7.1-rc1
- 2.7.1-beta1
- 2.7.0
- 2.7.0-rc1
- 2.6.x-dev
- 2.6.2.x-dev
- 2.6.2
- 2.6.1
- 2.6.1-rc1
- 2.6.0
- 2.6.0-rc1
- 2.5.x-dev
- 2.5.2
- 2.5.1
- 2.5.1-rc1
- 2.5.0
- 2.5.0-rc2
- 2.5.0-rc1
- 2.4.x-dev
- 2.4.1
- 2.4.0
- 2.4.0-rc1
- 2.3.x-dev
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.3.0-rc2
- 2.3.0-rc1
- 2.2.x-dev
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.2.0-rc1
- 2.1.x-dev
- 2.1.2
- 2.1.1
- 2.1.1-rc2
- 2.1.1-rc1
- 2.1.0
- 2.1.0-rc2
- 2.1.0-rc1
- 2.1.0-beta1
- 2.0.x-dev
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-rc4
- 2.0.0-rc3
- 2.0.0-rc2
- 2.0.0-rc1
- 2.0.0-beta1
- 1.x-dev
- 1.10.x-dev
- 1.9.x-dev
- 1.9.4
- 1.9.3
- 1.9.3-rc2
- 1.9.3-rc1
- 1.9.2
- 1.9.1
- 1.9.0
- 1.9.0-rc1
- 1.8.x-dev
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.1-rc1
- 1.8.0
- 1.8.0-rc1
- 1.7.x-dev
- 1.7.1
- 1.7.0
- 1.6.x-dev
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.6.0-rc1
- 1.5.x-dev
- 1.5.2
- 1.5.2-rc1
- 1.5.0
- 1.5.0-rc1
- 1.4.1
- 1.4.1-rc1
- 1.4.0
- 1.4.0-rc1
- 1.3.0
- 1.3.0-rc1
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.1-rc2
- 1.0.1-rc1
- dev-pulls/2.9/admin110
- dev-emteknetnz-patch-1
- dev-master
This package is auto-updated.
Last update: 2024-10-31 22:23:14 UTC
README
About this module
This module includes core configuration that integrates a Silverstripe CMS project with the underlying infrastructure of Silverstripe Cloud Platform CCL (formally Revera). Most NZ public sector projects will have this module included after installing the silverstripe/recipe-ccl recipe module.
Installation
composer require cwp/cwp-core
Configuration
There are some settings that can be modified in this module, depending on requirements. These are listed below.
XSS Protection
By default, sites using this module instruct newer browsers to protect against cross-site scripting (XSS) attacks. This is done using an HTTP header (X-XSS-Protection). More information on this header can be found on the Mozilla Developer Network site. To disable this feature, add the following to your YML configuration:
CWP\Core\Control\InitialisationMiddleware: xss_protection_enabled: false
Egress Proxy settings
An egress proxy is enabled for all external requests made by Silverstripe CMS sites running on Silverstripe Cloud CCL. This means that by default, all HTTP requests made using curl
or PHP's stream functions are routed via a proxy. In some cases this may not be desired (e.g. if you wish to communicate with localhost). By default, there are two exceptions to this proxy: services.cwp.govt.nz
and localhost
. These cover all standard platform use cases (e.g. searching via Solr).
You can disable the egress proxy entirely by adding the following YML configuration:
CWP\Core\Control\InitialisationMiddleware: egress_proxy_default_enabled: false
You can also add to the list of domains to disable the proxy by adding the following YML configuration:
CWP\Core\Control\InitialisationMiddleware: egress_proxy_exclude_domains: - example.com
Contributing
Translations
Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.
Please use https://www.transifex.com/projects/p/silverstripe-cwp-core to contribute translations, rather than sending pull requests with YAML files.