Important
You are browsing the documentation for version 3.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
Infrastructure-related Oro Application Configuration¶
Infrastructure-related configuration parameters are stored in the config/parameters.yml file and grouped in the following way:
The
database_
parameters are used to connect to the database.The
mailer_
parameters define settings used to deliver emails sent by the application.The
websocket_
parameters define settings for the web UI.The
session_handler
value specifies the PHP session handler to be used.The
secret
value is used to generate CSRF tokens.The
assets_version
parameter is used to bust the cache on assets by globally adding a query parameter to all rendered asset paths.The
assets_version_strategy
value defines the strategy used to generate the global assets version. The available values are:null
— The asset’s version stays unchanged.time_hash
— A hash of the current time.incremental
— The next asset’s version is the previous version incremented by one (e.g.ver1
->ver2
or1
->2
).
Default Configuration Values¶
Default configuration options for the Oro application are provided in brackets below:
1 database_driver (pdo_mysql): 2 database_host (127.0.0.1): 3 database_port (null): 4 database_name (oro_crm): 5 database_user (root): 6 database_password (null): 7 mailer_transport (smtp): 8 mailer_host (127.0.0.1): 9 mailer_port (null): 10 mailer_encryption (null): 11 mailer_user (null): 12 mailer_password (null): 13 websocket_bind_address (0.0.0.0): 14 websocket_bind_port (8080): 15 websocket_frontend_host ('*'): 16 websocket_frontend_port (8080): 17 websocket_backend_host ('*'): 18 websocket_backend_port (8080): 19 session_handler (session.handler.native_file): 20 secret (ThisTokenIsNotSoSecretChangeIt): 21 installed (null): 22 assets_version (null): 23 assets_version_strategy: time_hash
The Sample of Configuration Parameters¶
The sample contents of the <installation directory>/config/parameters.yml file for OroCommerce:
1 parameters:
2 database_driver: pdo_mysql
3 database_host: 154.122.122.154
4 database_port: 3606
5 database_name: orocommerce_database
6 database_user: orocommerce_database_user
7 database_password: orocommerce_database_password
8
9 mailer_transport: mail
10 mailer_host: 155.122.122.155
11 mailer_port: 22
12 mailer_encryption: TLS
13 mailer_user: orocommerce_mail_user
14 mailer_password: orocommerce_mail_password
15
16 # WebSocket server config
17 websocket_bind_address: "0.0.0.0" # The host IP the socket server will bind to
18 websocket_bind_port: 8080 # The port the socket server will listen on
19 websocket_frontend_host: "*" # Websocket host the browser will connect to
20 websocket_frontend_port: 8080 # Websocket port the browser will connect to
21 websocket_backend_host: "*" # Websocket host the application server will connect to
22 websocket_backend_port: 8080 # Websocket port the application server will connect to
23
24 # search engine configuration
25 search_engine_name: orm
26 search_engine_host: 156.122.122.156
27 search_engine_port: ~
28 search_engine_index_name: oro_search
29 search_engine_username: orocommerce_search_user
30 search_engine_password: orocommerce_search_password
31 search_engine_ssl_verification: ~
32 search_engine_ssl_cert: ~
33 search_engine_ssl_cert_password: ~
34 search_engine_ssl_key: ~
35 search_engine_ssl_key_password: ~
36
37 # website search engine configuration
38 website_search_engine_index_name: oro_website_search
39
40 # Used to hide backend under specified prefix, should start with "/" and should not end with "/", for instance "/admin"
41 web_backend_prefix: '/admin'
42
43 session_handler: session.handler.native_file
44
45 secret: ThisTokenIsNotSoSecretChangeIt
46 installed: ~
47 assets_version: ~
48 assets_version_strategy: time_hash # A strategy should be used to generate the global assets version, can be:
49 # null - the assets version stays unchanged
50 # time_hash - a hash of the current time
51 # incremental - the next assets version is the previous version is incremented by one (e.g. 'ver1' -> 'ver2' or '1' -> '2')
52 enterprise_licence: ~
53 message_queue_transport: 'dbal'
54 message_queue_transport_config: ~