mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
70 lines
3.3 KiB
PHP
70 lines
3.3 KiB
PHP
<?php
|
|
|
|
# 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
|
|
|
|
|
|
# Either "production", "dev" or "prerelease"
|
|
Setting('MODE', 'production');
|
|
|
|
# Either "en" or "de" or the filename (without extension) of
|
|
# one of the other available localization files in the "/localization" directory
|
|
Setting('CULTURE', 'en');
|
|
|
|
# To keep it simple: grocy does not handle any currency conversions,
|
|
# this here is used to format all money values,
|
|
# so can be anything (e. g. "USD" OR "$", doesn't matter...)
|
|
Setting('CURRENCY', '$');
|
|
|
|
# The base url of your installation,
|
|
# should be just "/" when running directly under the root of a (sub)domain
|
|
# or for example "https:/example.com/grocy" when using a subdirectory
|
|
Setting('BASE_URL', '/');
|
|
|
|
# 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
|
|
Setting('STOCK_BARCODE_LOOKUP_PLUGIN', 'DemoBarcodeLookupPlugin');
|
|
|
|
# If, however, your webserver does not support URL rewriting,
|
|
# set this to true
|
|
Setting('DISABLE_URL_REWRITING', false);
|
|
|
|
|
|
# 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
|
|
DefaultUserSetting('auto_night_mode_time_range_goes_over_midnight', true); // If the time range above goes over midnight
|
|
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)
|
|
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)
|
|
|
|
# If the page should be automatically reloaded when there was
|
|
# an external change
|
|
DefaultUserSetting('auto_reload_on_db_change', true);
|
|
|
|
# Show a clock in the header next to the logo or not
|
|
DefaultUserSetting('show_clock_in_header', false);
|
|
|
|
# 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);
|