2023-01-28 20:44:50 +01:00
#### Part-DB Configuration
2023-02-09 00:14:36 +01:00
# See https://docs.part-db.de/configuration.html for documentation of available options
2023-01-28 20:44:50 +01:00
###################################################################################
# Database settings
###################################################################################
2019-02-23 16:49:38 +01:00
2020-01-07 18:48:34 +01:00
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
2020-06-13 23:58:59 +02:00
# Use a file (SQLite) as database. For bigger instances you should use a real database server (like MySQL)
DATABASE_URL = "sqlite:///%kernel.project_dir%/var/app.db"
# Uncomment this line (and comment the line above to use a MySQL database
2020-01-07 18:48:34 +01:00
#DATABASE_URL=mysql://root:@127.0.0.1:3306/part-db?serverVersion=5.7
2020-06-13 23:58:59 +02:00
2023-01-28 20:44:50 +01:00
###################################################################################
# General settings
###################################################################################
2019-02-24 18:32:03 +01:00
2023-01-28 20:44:50 +01:00
# The language to use serverwide as default (en, de, ru, etc.)
DEFAULT_LANG = "en"
# The default timezone to use serverwide (e.g. Europe/Berlin)
DEFAULT_TIMEZONE = "Europe/Berlin"
# 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
BASE_CURRENCY = "EUR"
# The name of this installation. This will be shown as title in the browser and in the header of the website
INSTANCE_NAME = "Part-DB"
2020-06-01 21:55:56 +02:00
# Allow users to download attachments to the server by providing an URL
# This could be a potential security issue, as the user can retrieve any file the server has access to (via internet)
ALLOW_ATTACHMENT_DOWNLOADS = 0
2023-01-28 20:44:50 +01:00
# Use gravatars for user avatars, when user has no own avatar defined
USE_GRAVATAR = 0
2019-10-20 00:01:06 +02:00
2023-02-22 00:50:51 +01:00
# The public reachable URL of this Part-DB installation. This is used for generating links to the website in emails and so on
# This must end with a slash!
DEFAULT_URI = "https://partdb.changeme.invalid/"
2019-12-01 12:48:59 +01:00
###################################################################################
2023-01-28 20:44:50 +01:00
# Email settings
2019-12-01 12:48:59 +01:00
###################################################################################
# The DSN of the email server that should be used for sending emails (disabled by default)
# See Transport section of https://symfony.com/doc/current/components/mailer.html for available providers and syntax
MAILER_DSN = null://null
#MAILER_DSN=smtp://user:password@smtp.mailserver.invalid:587
# The email address from which all Part-DB emails should be sent. Change this when you configure email!
EMAIL_SENDER_EMAIL = noreply@partdb.changeme
2023-01-28 20:44:50 +01:00
# The sender name which should be used for all Part-DB emails
EMAIL_SENDER_NAME = "Part-DB Mailer"
2019-12-01 12:48:59 +01:00
# Set this to 1 to allow reset of a password per email
ALLOW_EMAIL_PW_RESET = 0
2020-02-23 21:04:16 +01:00
######################################################################################
2023-01-28 20:44:50 +01:00
# History/Eventlog settings
2020-02-23 21:04:16 +01:00
######################################################################################
2023-01-28 20:44:50 +01:00
# If you want to use full timetrave functionality all values below have to be set to 1
2020-02-23 21:04:16 +01:00
# Save which fields were changed in a ElementEdited log entry
HISTORY_SAVE_CHANGED_FIELDS = 1
# Save the old data in the ElementEdited log entry (warning this could increase the database size in short time)
2023-02-04 23:53:07 +01:00
HISTORY_SAVE_CHANGED_DATA = 1
2020-02-23 21:04:16 +01:00
# Save the data of an element that gets removed into log entry. This allows to undelete an element
2023-02-04 23:53:07 +01:00
HISTORY_SAVE_REMOVED_DATA = 1
2020-02-23 21:04:16 +01:00
2023-01-28 20:44:50 +01:00
###################################################################################
# Error pages settings
###################################################################################
# You can set an email address here, which is shown on an error page, how to contact an administrator
ERROR_PAGE_ADMIN_EMAIL = ''
# 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...
ERROR_PAGE_SHOW_HELP = 1
2023-02-22 00:50:51 +01:00
###################################################################################
# SAML Single sign on-settings
###################################################################################
# Set this to 1 to enable SAML single sign on
SAML_ENABLED = 0
# The entity ID of your SAML IDP (e.g. the realm name of your Keycloak server)
SAML_IDP_ENTITY_ID = "https://idp.changeme.invalid/realms/master"
# The URL of your SAML IDP SingleSignOnService (e.g. the endpoint of your Keycloak server)
SAML_IDP_SINGLE_SIGN_ON_SERVICE = "https://idp.changeme.invalid/realms/master/protocol/saml"
# The URL of your SAML IDP SingleLogoutService (e.g. the endpoint of your Keycloak server)
SAML_IDP_SINGLE_LOGOUT_SERVICE = "https://idp.changeme.invalid/realms/master/protocol/saml"
# The public certificate of the SAML IDP (e.g. the certificate of your Keycloak server)
SAML_IDP_X509_CERT = "MIIC..."
# The entity of your SAML SP, must match the SP entityID configured in your SAML IDP (e.g. Keycloak).
# This should be a the domain name of your Part-DB installation, followed by "/sp"
SAML_SP_ENTITY_ID = "https://partdb.changeme.invalid/sp"
# The public certificate of the SAML SP
SAML_SP_X509_CERT = "MIIC..."
# The private key of the SAML SP
SAMLP_SP_PRIVATE_KEY = "MIIE..."
2023-01-28 20:44:50 +01:00
######################################################################################
# Other settings
######################################################################################
# In demo mode things it is not possible for a user to change his password and his settings.
DEMO_MODE = 0
# Change this to true, if no url rewriting (like mod_rewrite for Apache) is available
# In that case all URL contains the index.php front controller in URL
NO_URL_REWRITE_AVAILABLE = 0
2021-10-02 21:04:31 +02:00
2023-01-28 20:44:50 +01:00
# If you want to use fixer.io for currency conversion, you have to set this to your API key
FIXER_API_KEY = CHANGEME
# Override value if you want to show to show a given text on homepage.
# When this is empty the content of config/banner.md is used as banner
BANNER = ""
APP_ENV = prod
APP_SECRET = a03498528f5a5fc089273ec9ae5b2849
# Set the trusted IPs here, when using an reverse proxy
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
2023-02-11 21:55:24 +01:00
#TRUSTED_HOSTS='^(localhost|example\.com)$'
###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN = flock
###< symfony/lock ###