Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Make env files more readable.
James Cole2e495c38d19c
diff --git a/.env.docker b/.env.dockerindex d07197d1f2..6da4c14359 100644--- a/.env.docker+++ b/.env.docker@@ -1,12 +1,24 @@+# You can leave this on "local". If you change it to production most console commands will ask for extra confirmation.+# Never set it to "testing".APP_ENV=${FF_APP_ENV}++# Set to true if you want to see debug information in error screens.APP_DEBUG=false-APP_NAME=FireflyIII++# This should be your email address++# The encryption key for your database and sessions. Keep this very secure.+# If you generate a new one all existing data must be considered LOST.+# Change it to a string of exactly 32 chars or use command `php artisan key:generate` to generate itAPP_KEY=${FF_APP_KEY}-APP_LOG=daily-APP_LOG_LEVEL=warning++# APP_URL and TRUSTED_PROXIES are useful when using Docker and/or a reverse proxy.APP_URL=${APP_URL}TRUSTED_PROXIES=${TRUSTED_PROXIES}+# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III+# If you use SQLite, set connection to `sqlite` and remove the database, username and password settings.DB_CONNECTION=mysqlDB_HOST=${FF_DB_HOST}DB_PORT=3306@@ -14,19 +26,27 @@ DB_DATABASE=${FF_DB_NAME}DB_USERNAME=${FF_DB_USER}DB_PASSWORD=${FF_DB_PASSWORD}-BROADCAST_DRIVER=log+# 'daily' is the default logging mode giving you 5 daily rotated log files in /storage/logs/.+# Several other options exist. You can use 'single' for one big fat error log (not recommended).+# Also available are 'syslog' and 'errorlog' which will log to the system itself.+APP_LOG=daily++# Log level. You can set this from least severe to most severe:+# debug, info, notice, warning, error, critical, alert, emergency+# If you set it to debug your logs will grow large, and fast. If you set it to emergency probably+# nothing will get logged, ever.+APP_LOG_LEVEL=warning++# If you're looking for performance improvements, you could install memcached.CACHE_DRIVER=fileSESSION_DRIVER=file-QUEUE_DRIVER=sync+# Cookie settings. Should not be necessary to change these.COOKIE_PATH="/"COOKIE_DOMAIN=COOKIE_SECURE=false-REDIS_HOST=127.0.0.1-REDIS_PASSWORD=null-REDIS_PORT=6379-+# If you want Firefly III to mail you, update these settingsMAIL_DRIVER=smtpMAIL_HOST=smtp.mailtrap.ioMAIL_PORT=2525@@ -35,26 +55,36 @@ MAIL_USERNAME=nullMAIL_PASSWORD=nullMAIL_ENCRYPTION=null+# Firefly III can send you the following messagesSEND_REGISTRATION_MAIL=trueSEND_ERROR_MESSAGE=true-CACHE_PREFIX=firefly--SEARCH_RESULT_LIMIT=50-EXCHANGE_RATE_SERVICE=fixerio-+# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.MAPBOX_API_KEY=++# If you wish to track your own behavior over Firefly III, set a valid analytics tracker ID here.ANALYTICS_ID=++# Most parts of the database are encrypted by default, but you can turn this off if you want to.+# This makes it easier to migrate your database. Not that some fields will never be decrypted.USE_ENCRYPTION=true+# Leave the following configuration vars as is.+# Unless you like to tinker and know what you're doing.+APP_NAME=FireflyIII+BROADCAST_DRIVER=log+QUEUE_DRIVER=sync+REDIS_HOST=127.0.0.1+REDIS_PASSWORD=null+REDIS_PORT=6379+CACHE_PREFIX=firefly+SEARCH_RESULT_LIMIT=50+EXCHANGE_RATE_SERVICE=fixerioPUSHER_KEY=PUSHER_SECRET=PUSHER_ID=-DEMO_USERNAME=DEMO_PASSWORD=-IS_DOCKER=trueIS_SANDSTORM=falseIS_HEROKU=falsediff --git a/.env.example b/.env.exampleindex 159b802948..2d156589fa 100644--- a/.env.example+++ b/.env.example@@ -1,12 +1,24 @@+# You can leave this on "local". If you change it to production most console commands will ask for extra confirmation.+# Never set it to "testing".APP_ENV=local++# Set to true if you want to see debug information in error screens.APP_DEBUG=false-APP_NAME=FireflyIII++# This should be your email address++# The encryption key for your database and sessions. Keep this very secure.+# If you generate a new one all existing data must be considered LOST.+# Change it to a string of exactly 32 chars or use command `php artisan key:generate` to generate itAPP_KEY=SomeRandomStringOf32CharsExactly-APP_LOG=daily-APP_LOG_LEVEL=notice++# APP_URL and TRUSTED_PROXIES are useful when using Docker and/or a reverse proxy.APP_URL=http://localhostTRUSTED_PROXIES=+# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III+# If you use SQLite, set connection to `sqlite` and remove the database, username and password settings.DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306@@ -14,19 +26,27 @@ DB_DATABASE=homesteadDB_USERNAME=homesteadDB_PASSWORD=secret-BROADCAST_DRIVER=log+# 'daily' is the default logging mode giving you 5 daily rotated log files in /storage/logs/.+# Several other options exist. You can use 'single' for one big fat error log (not recommended).+# Also available are 'syslog' and 'errorlog' which will log to the system itself.+APP_LOG=daily++# Log level. You can set this from least severe to most severe:+# debug, info, notice, warning, error, critical, alert, emergency+# If you set it to debug your logs will grow large, and fast. If you set it to emergency probably+# nothing will get logged, ever.+APP_LOG_LEVEL=notice++# If you're looking for performance improvements, you could install memcached.CACHE_DRIVER=fileSESSION_DRIVER=file-QUEUE_DRIVER=sync+# Cookie settings. Should not be necessary to change these.COOKIE_PATH="/"COOKIE_DOMAIN=COOKIE_SECURE=false-REDIS_HOST=127.0.0.1-REDIS_PASSWORD=null-REDIS_PORT=6379-+# If you want Firefly III to mail you, update these settingsMAIL_DRIVER=smtpMAIL_HOST=smtp.mailtrap.ioMAIL_PORT=2525@@ -35,26 +55,36 @@ MAIL_USERNAME=nullMAIL_PASSWORD=nullMAIL_ENCRYPTION=null+# Firefly III can send you the following messagesSEND_REGISTRATION_MAIL=trueSEND_ERROR_MESSAGE=true-CACHE_PREFIX=firefly--SEARCH_RESULT_LIMIT=50-EXCHANGE_RATE_SERVICE=fixerio-+# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.MAPBOX_API_KEY=++# If you wish to track your own behavior over Firefly III, set a valid analytics tracker ID here.ANALYTICS_ID=++# Most parts of the database are encrypted by default, but you can turn this off if you want to.+# This makes it easier to migrate your database. Not that some fields will never be decrypted.USE_ENCRYPTION=true+# Leave the following configuration vars as is.+# Unless you like to tinker and know what you're doing.+APP_NAME=FireflyIII+BROADCAST_DRIVER=log+QUEUE_DRIVER=sync+REDIS_HOST=127.0.0.1+REDIS_PASSWORD=null+REDIS_PORT=6379+CACHE_PREFIX=firefly+SEARCH_RESULT_LIMIT=50+EXCHANGE_RATE_SERVICE=fixerioPUSHER_KEY=PUSHER_SECRET=PUSHER_ID=-DEMO_USERNAME=DEMO_PASSWORD=-IS_DOCKER=falseIS_SANDSTORM=falseIS_HEROKU=falsediff --git a/.env.heroku b/.env.herokuindex 21ab4f3587..f4b16694c3 100644--- a/.env.heroku+++ b/.env.heroku@@ -1,12 +1,24 @@+# You can leave this on "local". If you change it to production most console commands will ask for extra confirmation.+# Never set it to "testing".APP_ENV=heroku-APP_DEBUG=true-APP_NAME=FireflyIII++# Set to true if you want to see debug information in error screens.+APP_DEBUG=false++# This should be your email address++# The encryption key for your database and sessions. Keep this very secure.+# If you generate a new one all existing data must be considered LOST.+# Change it to a string of exactly 32 chars or use command `php artisan key:generate` to generate itAPP_KEY=7ahyYVPVsmxjdhsweWCauGeJfwc92NP2-APP_LOG=errorlog-APP_LOG_LEVEL=debug++# APP_URL and TRUSTED_PROXIES are useful when using Docker and/or a reverse proxy.APP_URL=http://localhost-TRUSTED_PROXIES=*+TRUSTED_PROXIES=+# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III+# If you use SQLite, set connection to `sqlite` and remove the database, username and password settings.DB_CONNECTION=pgsql@@ -14,19 +26,27 @@ DB_CONNECTION=pgsql-BROADCAST_DRIVER=log+# 'daily' is the default logging mode giving you 5 daily rotated log files in /storage/logs/.+# Several other options exist. You can use 'single' for one big fat error log (not recommended).+# Also available are 'syslog' and 'errorlog' which will log to the system itself.+APP_LOG=errorlog++# Log level. You can set this from least severe to most severe:+# debug, info, notice, warning, error, critical, alert, emergency+# If you set it to debug your logs will grow large, and fast. If you set it to emergency probably+# nothing will get logged, ever.+APP_LOG_LEVEL=debug++# If you're looking for performance improvements, you could install memcached.CACHE_DRIVER=fileSESSION_DRIVER=file-QUEUE_DRIVER=sync+# Cookie settings. Should not be necessary to change these.COOKIE_PATH="/"COOKIE_DOMAIN=COOKIE_SECURE=false-REDIS_HOST=127.0.0.1-REDIS_PASSWORD=null-REDIS_PORT=6379-+# If you want Firefly III to mail you, update these settingsMAIL_DRIVER=smtpMAIL_HOST=smtp.mailtrap.ioMAIL_PORT=2525@@ -35,26 +55,36 @@ MAIL_USERNAME=nullMAIL_PASSWORD=nullMAIL_ENCRYPTION=null+# Firefly III can send you the following messagesSEND_REGISTRATION_MAIL=trueSEND_ERROR_MESSAGE=true-CACHE_PREFIX=firefly--SEARCH_RESULT_LIMIT=50-EXCHANGE_RATE_SERVICE=fixerio-+# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.MAPBOX_API_KEY=++# If you wish to track your own behavior over Firefly III, set a valid analytics tracker ID here.ANALYTICS_ID=++# Most parts of the database are encrypted by default, but you can turn this off if you want to.+# This makes it easier to migrate your database. Not that some fields will never be decrypted.USE_ENCRYPTION=true+# Leave the following configuration vars as is.+# Unless you like to tinker and know what you're doing.+APP_NAME=FireflyIII+BROADCAST_DRIVER=log+QUEUE_DRIVER=sync+REDIS_HOST=127.0.0.1+REDIS_PASSWORD=null+REDIS_PORT=6379+CACHE_PREFIX=firefly+SEARCH_RESULT_LIMIT=50+EXCHANGE_RATE_SERVICE=fixerioPUSHER_KEY=PUSHER_SECRET=PUSHER_ID=-DEMO_USERNAME=DEMO_PASSWORD=-IS_DOCKER=falseIS_SANDSTORM=falseIS_HEROKU=truediff --git a/.env.sandstorm b/.env.sandstormindex d446820dc7..4504105a92 100755--- a/.env.sandstorm+++ b/.env.sandstorm@@ -1,12 +1,24 @@+# You can leave this on "local". If you change it to production most console commands will ask for extra confirmation.+# Never set it to "testing".APP_ENV=local++# Set to true if you want to see debug information in error screens.APP_DEBUG=false-APP_NAME=FireflyIII++# This should be your email address++# The encryption key for your database and sessions. Keep this very secure.+# If you generate a new one all existing data must be considered LOST.+# Change it to a string of exactly 32 chars or use command `php artisan key:generate` to generate itAPP_KEY=SomeRandomStringOf32CharsExactly-APP_LOG=syslog-APP_LOG_LEVEL=info++# APP_URL and TRUSTED_PROXIES are useful when using Docker and/or a reverse proxy.APP_URL=http://localhostTRUSTED_PROXIES=+# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III+# If you use SQLite, set connection to `sqlite` and remove the database, username and password settings.DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306@@ -14,19 +26,27 @@ DB_DATABASE=fireflyDB_USERNAME=fireflyDB_PASSWORD=firefly-BROADCAST_DRIVER=log+# 'daily' is the default logging mode giving you 5 daily rotated log files in /storage/logs/.+# Several other options exist. You can use 'single' for one big fat error log (not recommended).+# Also available are 'syslog' and 'errorlog' which will log to the system itself.+APP_LOG=syslog++# Log level. You can set this from least severe to most severe:+# debug, info, notice, warning, error, critical, alert, emergency+# If you set it to debug your logs will grow large, and fast. If you set it to emergency probably+# nothing will get logged, ever.+APP_LOG_LEVEL=info++# If you're looking for performance improvements, you could install memcached.CACHE_DRIVER=fileSESSION_DRIVER=file-QUEUE_DRIVER=sync+# Cookie settings. Should not be necessary to change these.COOKIE_PATH="/"COOKIE_DOMAIN=COOKIE_SECURE=false-REDIS_HOST=127.0.0.1-REDIS_PASSWORD=null-REDIS_PORT=6379-+# If you want Firefly III to mail you, update these settingsMAIL_DRIVER=smtpMAIL_HOST=smtp.mailtrap.ioMAIL_PORT=2525@@ -35,26 +55,36 @@ MAIL_USERNAME=nullMAIL_PASSWORD=nullMAIL_ENCRYPTION=null+# Firefly III can send you the following messagesSEND_REGISTRATION_MAIL=trueSEND_ERROR_MESSAGE=true-CACHE_PREFIX=firefly--SEARCH_RESULT_LIMIT=50-EXCHANGE_RATE_SERVICE=fixerio-+# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.MAPBOX_API_KEY=++# If you wish to track your own behavior over Firefly III, set a valid analytics tracker ID here.ANALYTICS_ID=++# Most parts of the database are encrypted by default, but you can turn this off if you want to.+# This makes it easier to migrate your database. Not that some fields will never be decrypted.USE_ENCRYPTION=true+# Leave the following configuration vars as is.+# Unless you like to tinker and know what you're doing.+APP_NAME=FireflyIII+BROADCAST_DRIVER=log+QUEUE_DRIVER=sync+REDIS_HOST=127.0.0.1+REDIS_PASSWORD=null+REDIS_PORT=6379+CACHE_PREFIX=firefly+SEARCH_RESULT_LIMIT=50+EXCHANGE_RATE_SERVICE=fixerioPUSHER_KEY=PUSHER_SECRET=PUSHER_ID=-DEMO_USERNAME=DEMO_PASSWORD=-IS_DOCKER=falseIS_SANDSTORM=trueIS_HEROKU=false