mirror of
https://github.com/filegator/filegator.git
synced 2025-04-22 15:51:52 +02:00
docs upd
This commit is contained in:
parent
dc9a1b35fe
commit
3d7ac324ca
@ -46,6 +46,13 @@ menu:
|
||||
sessions:
|
||||
text: Session
|
||||
relativeUrl: configuration/session.html
|
||||
storate:
|
||||
storage:
|
||||
text: Storage
|
||||
relativeUrl: configuration/storage.html
|
||||
logging:
|
||||
text: Logging
|
||||
relativeUrl: configuration/logging.html
|
||||
security:
|
||||
text: Security
|
||||
relativeUrl: configuration/security.html
|
||||
|
||||
|
22
docs/configuration/logging.md
Normal file
22
docs/configuration/logging.md
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
## Configuring Logging service
|
||||
|
||||
Logging is provided via powerful [Monolog](https://github.com/Seldaek/monolog) library. Please check their docs for more info.
|
||||
|
||||
Default logger handler will use ```/private/logs/app.log``` file to store application logs:
|
||||
|
||||
```
|
||||
'Filegator\Services\Logger\LoggerInterface' => [
|
||||
'handler' => '\Filegator\Services\Logger\Adapters\MonoLogger',
|
||||
'config' => [
|
||||
'monolog_handlers' => [
|
||||
function () {
|
||||
return new \Monolog\Handler\StreamHandler(
|
||||
__DIR__.'/private/logs/app.log',
|
||||
\Monolog\Logger::DEBUG
|
||||
);
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
```
|
23
docs/configuration/security.md
Normal file
23
docs/configuration/security.md
Normal 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',
|
||||
],
|
||||
],
|
||||
],
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user