{"id":18750840,"url":"https://github.com/silverstripe/cwp-core","last_synced_at":"2025-10-06T14:11:49.941Z","repository":{"id":27535177,"uuid":"113399915","full_name":"silverstripe/cwp-core","owner":"silverstripe","description":"CWP basic compatibility module","archived":false,"fork":false,"pushed_at":"2025-01-16T22:02:50.000Z","size":374,"stargazers_count":3,"open_issues_count":5,"forks_count":12,"subscribers_count":10,"default_branch":"3","last_synced_at":"2025-03-17T11:11:23.381Z","etag":null,"topics":["cwp","hacktoberfest","silverstripe"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverstripe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-07T03:48:27.000Z","updated_at":"2025-01-16T22:02:52.000Z","dependencies_parsed_at":"2023-01-14T06:57:51.628Z","dependency_job_id":"9eabeccf-e656-46cd-9bff-047a16066298","html_url":"https://github.com/silverstripe/cwp-core","commit_stats":{"total_commits":228,"total_committers":30,"mean_commits":7.6,"dds":0.6052631578947368,"last_synced_commit":"91e1b7dfdd8735d86de71678970458a05b4a7ff2"},"previous_names":[],"tags_count":108,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fcwp-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fcwp-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fcwp-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fcwp-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverstripe","download_url":"https://codeload.github.com/silverstripe/cwp-core/tar.gz/refs/heads/3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755667,"owners_count":20667027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cwp","hacktoberfest","silverstripe"],"created_at":"2024-11-07T17:13:19.992Z","updated_at":"2025-10-06T14:11:44.888Z","avatar_url":"https://github.com/silverstripe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CWP Core Module\n\n[![CI](https://github.com/silverstripe/cwp-core/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/cwp-core/actions/workflows/ci.yml)\n\n## About this module\nThis 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](https://github.com/silverstripe/recipe-ccl).\n\n## Installation\n\n```sh\ncomposer require cwp/cwp-core\n```\n\n## Configuration\nThere are some settings that can be modified in this module, depending on requirements. These are listed below.\n\n### XSS Protection\nBy 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](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) site. To disable this feature, add the following to your YML configuration:\n\n```yaml\nCWP\\Core\\Control\\InitialisationMiddleware:\n  xss_protection_enabled: false\n```\n\n### Egress Proxy settings\nAn 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).\n\nYou can disable the egress proxy entirely by adding the following YML configuration:\n\n```yaml\nCWP\\Core\\Control\\InitialisationMiddleware:\n  egress_proxy_default_enabled: false\n```\n\nYou can also add to the list of domains to disable the proxy by adding the following YML configuration:\n\n```yaml\nCWP\\Core\\Control\\InitialisationMiddleware:\n  egress_proxy_exclude_domains:\n    - example.com\n```\n\n## Contributing\n\n### Translations\n\nTranslations 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.\n\nPlease use [https://www.transifex.com/projects/p/silverstripe-cwp-core](https://www.transifex.com/projects/p/silverstripe-cwp-core) to contribute translations, rather than sending pull requests with YAML files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverstripe%2Fcwp-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverstripe%2Fcwp-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverstripe%2Fcwp-core/lists"}