2017-04-15 23:16:20 +02:00
< ? php
2018-12-23 16:45:16 +01:00
# Settings can also be overwritten in two ways
#
# First priority
# A .txt file with the same name as the setting in /data/settingoverrides
# the content of the file is used as the setting value
#
# Second priority
# An environment variable with the same name as the setting and prefix "GROCY_"
# so for example "GROCY_BASE_URL"
#
# Third priority
# The settings defined here below
2018-09-25 08:55:25 +02:00
# Either "production", "dev" or "prerelease"
2018-07-12 19:12:31 +02:00
Setting ( 'MODE' , 'production' );
2018-04-18 19:03:39 +02:00
# Either "en" or "de" or the filename (without extension) of
# one of the other available localization files in the "/localization" directory
2018-07-12 19:12:31 +02:00
Setting ( 'CULTURE' , 'en' );
2018-04-18 19:03:39 +02:00
2018-09-30 03:31:16 -04:00
# To keep it simple: grocy does not handle any currency conversions,
2018-07-26 20:27:38 +02:00
# this here is used to format all money values,
2019-03-09 16:04:03 +01:00
# so doesn't matter really matter, but should be the
# ISO 4217 code of the currency ("USD", "EUR", "GBP", etc.)
Setting ( 'CURRENCY' , 'USD' );
2018-07-26 20:27:38 +02:00
2018-04-18 19:03:39 +02:00
# The base url of your installation,
# should be just "/" when running directly under the root of a (sub)domain
2019-03-03 14:47:38 +01:00
# or for example "https://example.com/grocy" when using a subdirectory
2018-07-12 19:12:31 +02:00
Setting ( 'BASE_URL' , '/' );
2018-04-22 19:47:46 +02:00
# The plugin to use for external barcode lookups,
# must be the filename without .php extension and must be located in /data/plugins,
# see /data/plugins/DemoBarcodeLookupPlugin.php for an example implementation
2018-07-12 19:12:31 +02:00
Setting ( 'STOCK_BARCODE_LOOKUP_PLUGIN' , 'DemoBarcodeLookupPlugin' );
2018-06-15 20:50:40 +02:00
# If, however, your webserver does not support URL rewriting,
# set this to true
2018-07-12 19:12:31 +02:00
Setting ( 'DISABLE_URL_REWRITING' , false );
2018-09-30 17:14:04 +02:00
2019-03-01 19:33:33 +01:00
2018-09-30 17:14:04 +02:00
# Default user settings
# These settings can be changed per user, here the defaults
# are defined which are used when the user has not changed the setting so far
# Night mode related
DefaultUserSetting ( 'night_mode_enabled' , false ); // If night mode is enabled always
DefaultUserSetting ( 'auto_night_mode_enabled' , false ); // If night mode is enabled automatically when inside a given time range (see the two settings below)
DefaultUserSetting ( 'auto_night_mode_time_range_from' , " 20:00 " ); // Format HH:mm
DefaultUserSetting ( 'auto_night_mode_time_range_to' , " 07:00 " ); // Format HH:mm
2018-09-30 18:02:59 +02:00
DefaultUserSetting ( 'auto_night_mode_time_range_goes_over_midnight' , true ); // If the time range above goes over midnight
2018-09-30 19:31:03 +02:00
DefaultUserSetting ( 'currently_inside_night_mode_range' , false ); // If we're currently inside of night mode time range (this is not user configurable, but stored as a user setting because it's evaluated client side to be able to use the client time instead of the maybe different server time)
2018-10-20 14:55:49 +02:00
DefaultUserSetting ( 'product_presets_location_id' , - 1 ); // Default location id for new products (-1 means no location is preset)
DefaultUserSetting ( 'product_presets_product_group_id' , - 1 ); // Default product group id for new products (-1 means no product group is preset)
DefaultUserSetting ( 'product_presets_qu_id' , - 1 ); // Default quantity unit id for new products (-1 means no quantity unit is preset)
2018-09-30 17:14:04 +02:00
# If the page should be automatically reloaded when there was
# an external change
DefaultUserSetting ( 'auto_reload_on_db_change' , true );
2018-11-20 19:23:48 +01:00
# Show a clock in the header next to the logo or not
DefaultUserSetting ( 'show_clock_in_header' , false );
2018-11-21 19:08:36 +01:00
# Shopping list to stock workflow:
# Automatically do the booking using the last price and the amount
# of the shopping list item, if the product has "Default best before days" set
DefaultUserSetting ( 'shopping_list_to_stock_workflow_auto_submit_when_prefilled' , false );
2019-03-01 19:33:33 +01:00
# Feature flags
# grocy was initially about "stock management for your household", many other things
# came and still come by, because they are useful - here you can disable the parts
# which you don't need to have a less cluttered UI
# (set the setting to "false" to disable the corresponding part, which should be self explanatory)
Setting ( 'FEATURE_FLAG_SHOPPINGLIST' , true );
Setting ( 'FEATURE_FLAG_RECIPES' , true );
Setting ( 'FEATURE_FLAG_CHORES' , true );
Setting ( 'FEATURE_FLAG_TASKS' , true );
Setting ( 'FEATURE_FLAG_BATTERIES' , true );
Setting ( 'FEATURE_FLAG_EQUIPMENT' , true );
Setting ( 'FEATURE_FLAG_CALENDAR' , true );