This commit is contained in:
Milos Stojanovic
2019-06-18 15:09:39 +02:00
parent dc9a1b35fe
commit 3d7ac324ca
3 changed files with 53 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
## Configuring Security
Simple security service is included in the script by default. This service provides:
- Basic [CSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery) protection
- IP whitelisting
- IP blacklisting
```
'Filegator\Services\Security\Security' => [
'handler' => '\Filegator\Services\Security\Security',
'config' => [
'csrf_protection' => true,
'ip_whitelist' => [],
'ip_blacklist' => [
'172.16.1.2',
'172.16.3.4',
],
],
],
```