sansec / magento2-module-watch
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: *
- magento/module-csp: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-05-12 14:59:59 UTC
README
Installation
composer require sansec/magento2-module-watch bin/magento setup:upgrade bin/magento config:set --lock-env system/sansec_watch/enabled 1 bin/magento config:set --lock-env system/sansec_watch/endpoint https://[ID].sansec.watch/ bin/magento cache:clean config
Manual Setup
Nginx
map $msec $set_watch_headers { default 0; "~[1-5]1$" 1; # ~5% } server { location [...] { if ($set_watch_headers) { add_header Reporting-Endpoints 'csp-endpoint="https://[ID].sansec.watch/"'; add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; report-to csp-endpoint"; } } }
License
MIT License - Copyright (c) 2024 Sansec