From d775ea7e9b3d475614e0a1fbc8529d5e6d6bf326 Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Tue, 18 Jun 2019 15:10:07 +0200 Subject: [PATCH] Website generation with Couscous --- configuration/auth.html | 10 +++ configuration/basic.html | 10 +++ configuration/logging.html | 138 +++++++++++++++++++++++++++++++++++ configuration/security.html | 140 ++++++++++++++++++++++++++++++++++++ configuration/session.html | 10 +++ configuration/storage.html | 10 +++ demo.html | 10 +++ development.html | 10 +++ index.html | 10 +++ install.html | 10 +++ 10 files changed, 358 insertions(+) create mode 100644 configuration/logging.html create mode 100644 configuration/security.html diff --git a/configuration/auth.html b/configuration/auth.html index 6867a4c..1bec848 100644 --- a/configuration/auth.html +++ b/configuration/auth.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/configuration/basic.html b/configuration/basic.html index 60af784..aebac79 100644 --- a/configuration/basic.html +++ b/configuration/basic.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/configuration/logging.html b/configuration/logging.html new file mode 100644 index 0000000..43fa91a --- /dev/null +++ b/configuration/logging.html @@ -0,0 +1,138 @@ + + + + + + + FileGator + + + + + + + + + + +
    +
    + + + + + +
    +

    Configuring Logging service

    +

    Logging is provided via powerful 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
    +                        );
    +                    },
    +                ],
    +            ],
    +        ],
    +
    + +
    +
    + + + + + + + + + diff --git a/configuration/security.html b/configuration/security.html new file mode 100644 index 0000000..7782e9c --- /dev/null +++ b/configuration/security.html @@ -0,0 +1,140 @@ + + + + + + + FileGator + + + + + + + + + + +
    +
    + + + + + +
    +

    Configuring Security

    +

    Simple security service is included in the script by default. This service provides:

    +
      +
    • Basic CSRF 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',
    +                ],
    +            ],
    +        ],
    +
    + +
    +
    + + + + + + + + + diff --git a/configuration/session.html b/configuration/session.html index d099ef1..e6172ad 100644 --- a/configuration/session.html +++ b/configuration/session.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/configuration/storage.html b/configuration/storage.html index 3a0bcb1..22e9345 100644 --- a/configuration/storage.html +++ b/configuration/storage.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/demo.html b/demo.html index 29de875..2f10fbc 100644 --- a/demo.html +++ b/demo.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/development.html b/development.html index 7a914cf..1f4f0a2 100644 --- a/development.html +++ b/development.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/index.html b/index.html index db59102..2ac63fe 100644 --- a/index.html +++ b/index.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +
  • diff --git a/install.html b/install.html index 5dabea2..10bcae1 100644 --- a/install.html +++ b/install.html @@ -84,6 +84,16 @@ Storage + +
  • + + Logging + +
  • +
  • + + Security +