Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 3.33 KB

CUSTOM_CONFIGURATION.md

File metadata and controls

81 lines (60 loc) · 3.33 KB

What is this?

This document contains necessary information how you can use your own custom configuration for this application.

Table of Contents

Prologue

This application is using Dotenv component parses .env files to make environment variables stored in them accessible via $_ENV or $_SERVER.

To get basic knowledge how this works you should see External links / resources section of this document.

Within this application we define all environment specified settings to separate application.json file that we can easily use with Symfony configuration part.

Creating custom files

Starting to use custom configuration is quite easy, all you need to do is following:

cp /app/.env /app/.env.local
cp /app/secrets/application.json /app/secrets/application.local.json
sed -i "s/application\.json/application\.local\.json/g" .env.local

OR

make local-configuration

With these commands you created your own configuration that application will use on next start up. So all that you need to do is to make necessary changes to those newly created files.

Making necessary changes to those files should be quite self explanatory - just take a look what those files contains. And most likely you only need to make changes to that secrets/application.local.json file.

Detailed configuration

Below you can see all the current configuration values that are defined in application.json and those are used on Symfony configuration files.

DATABASE_NAME                     = Self explanatory
DATABASE_URL                      = Self explanatory
JWT_SECRET_KEY                    = Where private JWT key is stored
JWT_PUBLIC_KEY                    = Where public JWT key is stored
JWT_PASSPHRASE                    = Used passphrase for that private key
CORS_ALLOW_ORIGIN                 = Which IP addresses are allowed to make CORS
                                    requests
REQUEST_LOG_SENSITIVE_PROPERTIES  = Which request parameters are "sensitive"
                                    ones, this prevent writing those to request
                                    log

External links / resources


Back to resources index - Back to main README.md