2020-05-12 22:53:42 +02:00
# Here you can configure the global behavior of Part-DB
parameters :
######################################################################################################################
# Common
######################################################################################################################
2023-01-28 20:44:50 +01:00
partdb.locale : '%env(string:DEFAULT_LANG)%' # The default language to use serverwide
partdb.timezone : '%env(string:DEFAULT_TIMEZONE)%' # The default timezone
partdb.title : '%env(trim:string:INSTANCE_NAME)%' # The title shown inside of Part-DB (e.g. in the navbar and on homepage)
2020-05-12 22:53:42 +02:00
partdb.banner : '%env(trim:string:BANNER)%' # The info text shown in the homepage, if empty config/banner.md is used
2023-01-28 20:44:50 +01:00
partdb.default_currency : '%env(string:BASE_CURRENCY)%' # The currency that is used inside the DB (and is assumed when no currency is set). This can not be changed later, so be sure to set it the currency used in your country
2020-05-12 22:53:42 +02:00
partdb.global_theme : '' # The theme to use globally (see public/build/themes/ for choices, use name without .css). Set to '' for default bootstrap theme
partdb.locale_menu : [ 'en' , 'de' , 'fr' , 'ru' , 'ja' ] # The languages that are shown in user drop down menu
2023-04-08 20:43:19 +02:00
partdb.enforce_change_comments_for : '%env(csv:ENFORCE_CHANGE_COMMENTS_FOR)%' # The actions for which a change comment is required (e.g. "part_edit", "part_create", etc.). If this is empty, change comments are not required at all.
2020-05-12 22:53:42 +02:00
2023-02-22 00:50:51 +01:00
partdb.default_uri : '%env(string:DEFAULT_URI)%' # The default URI to use for the Part-DB instance (e.g. https://part-db.example.com/). This is used for generating links in emails
2020-05-12 22:53:42 +02:00
######################################################################################################################
# Users and Privacy
######################################################################################################################
2023-06-11 14:50:47 +02:00
partdb.gdpr_compliance : true # If this option is activated, IP addresses are anonymized to be GDPR compliant
2023-01-28 20:44:50 +01:00
partdb.users.use_gravatar : '%env(bool:USE_GRAVATAR)%' # Set to false, if no Gravatar images should be used for user profiles.
partdb.users.email_pw_reset : '%env(bool:ALLOW_EMAIL_PW_RESET)%' # Config if users are able, to reset their password by email. By default this enabled, when a mail server is configured.
2020-05-12 22:53:42 +02:00
2023-08-04 23:55:41 +02:00
partdb.check_for_updates : true # Set to false, if Part-DB should not contact the GitHub API to check for updates
2020-05-12 22:53:42 +02:00
######################################################################################################################
# Mail settings
######################################################################################################################
2023-01-28 20:44:50 +01:00
partdb.mail.sender_email : '%env(string:EMAIL_SENDER_EMAIL)%' # The email address from which all emails are sent from
partdb.mail.sender_name : '%env(string:EMAIL_SENDER_NAME)%' # The name that will be used for all mails sent by Part-DB
2020-05-12 22:53:42 +02:00
######################################################################################################################
# Attachments and files
######################################################################################################################
2023-03-02 23:08:14 +01:00
partdb.attachments.allow_downloads: '%env(bool:ALLOW_ATTACHMENT_DOWNLOADS)%' # Allow users to download attachments to server. Warning : This can be dangerous, because via that feature attackers maybe can access ressources on your intranet!
partdb.attachments.dir.media : 'public/media/' # The folder where uploaded attachment files are saved (must be in public folder)
partdb.attachments.dir.secure : 'uploads/' # The folder where secured attachment files are saved (must not be in public/)
partdb.attachments.max_file_size : '%env(string:MAX_ATTACHMENT_FILE_SIZE)%' # The maximum size of an attachment file (in bytes, you can use M for megabytes and G for gigabytes)
2020-05-12 22:53:42 +02:00
2020-05-30 20:48:08 +02:00
######################################################################################################################
# Error pages
######################################################################################################################
2023-01-28 20:44:50 +01:00
partdb.error_pages.admin_email : '%env(trim:string:ERROR_PAGE_ADMIN_EMAIL)%' # You can set an email address here, which is shown on an error page, how to contact an administrator
partdb.error_pages.show_help : '%env(trim:string:ERROR_PAGE_SHOW_HELP)%' # If this is set to true, solutions to common problems are shown on error pages. Disable this, if you do not want your users to see them...
2020-05-30 20:48:08 +02:00
2023-02-22 00:50:51 +01:00
######################################################################################################################
# SAML
######################################################################################################################
partdb.saml.enabled : '%env(bool:SAML_ENABLED)%' # If this is set to true, SAML authentication is enabled
2023-07-08 19:32:50 +02:00
######################################################################################################################
# Table settings
######################################################################################################################
partdb.table.default_page_size : '%env(int:TABLE_DEFAULT_PAGE_SIZE)%' # The default number of entries shown per page in tables
2022-08-04 23:13:43 +02:00
######################################################################################################################
# Sidebar
######################################################################################################################
# You can configures the default shown tree items in the sidebar here. You can add or remove entries here, to change the number of trees in the sidebar. The possible entries are: categories, locations, footprints, manufacturers, suppliers, devices, tools
partdb.sidebar.items :
- categories
- devices
- tools
2022-08-05 00:24:28 +02:00
partdb.sidebar.root_expanded : true # If this is set to true, the root node of the sidebar is expanded by default
2022-08-13 01:46:53 +02:00
partdb.sidebar.root_node_enable : true # Put all entities below a root node in the sidebar
2022-08-04 23:13:43 +02:00
2020-05-12 22:53:42 +02:00
######################################################################################################################
# Miscellaneous
######################################################################################################################
partdb.demo_mode : '%env(bool:DEMO_MODE)%' # If set to true, all potentially dangerous things are disabled (like changing passwords of the own user)
2023-02-01 23:15:02 +01:00
# Set the themes from which the user can choose from in the settings.
# Themes commented here by default, are not really usable, because of display problems. Enable them at your own risk!
partdb.available_themes :
- bootstrap
- cerulean
- cosmo
- cyborg
- darkly
- flatly
- journal
- litera
- lumen
- lux
#- materia
- minty
#- morph
#- pulse
#- quartz
- sandstone
- simplex
- sketchy
- slate
- solar
- spacelab
- superhero
- united
#- vapor
- yeti
- zephyr
2020-06-01 21:55:56 +02:00
######################################################################################################################
# Env default values
######################################################################################################################
2023-01-28 20:44:50 +01:00
env(DEFAULT_LANG) : 'en'
env(DEFAULT_TIMEZONE) : 'Europe/Berlin'
env(INSTANCE_NAME) : 'Part-DB'
env(BASE_CURRENCY) : 'EUR'
env(USE_GRAVATAR) : '0'
2023-03-02 23:08:14 +01:00
env(MAX_ATTACHMENT_FILE_SIZE) : '100M'
2020-05-12 22:53:42 +02:00
2023-04-08 20:43:19 +02:00
env(ENFORCE_CHANGE_COMMENTS_FOR) : ''
2023-01-28 20:44:50 +01:00
env(ERROR_PAGE_ADMIN_EMAIL) : ''
env(ERROR_PAGE_SHOW_HELP) : 1
env(DEMO_MODE) : 0
env(BANNER) : ''
env(EMAIL_SENDER_EMAIL) : 'noreply@partdb.changeme'
env(EMAIL_SENDER_NAME) : 'Part-DB Mailer'
env(ALLOW_EMAIL_PW_RESET) : 0
2023-07-08 19:32:50 +02:00
env(TABLE_DEFAULT_PAGE_SIZE) : 50
2022-07-17 22:47:30 +02:00
env(TRUSTED_PROXIES) : '127.0.0.1' #By default trust only our own server
env(TRUSTED_HOSTS) : '' # Trust all host names by default
2023-02-22 00:50:51 +01:00
env(DEFAULT_URI) : 'https://partdb.changeme.invalid/'
2023-02-27 23:47:42 +01:00
env(SAML_ROLE_MAPPING) : '{}'
2023-05-14 21:41:00 +02:00
env(HISTORY_SAVE_CHANGED_DATA) : 1
env(HISTORY_SAVE_CHANGED_FIELDS) : 1
env(HISTORY_SAVE_REMOVED_DATA) : 1
env(HISTORY_SAVE_NEW_DATA) : 1