Commit 4fd65f84 authored by Xavier Thompson's avatar Xavier Thompson Committed by Thomas Gambier

software/matomo-tutorial: Pre-fill the database installation form

parent 5997329c
...@@ -14,3 +14,20 @@ archive-root = matomo ...@@ -14,3 +14,20 @@ archive-root = matomo
# Customize the database name and username # Customize the database name and username
db-name = matomo db-name = matomo
db-user = matomo db-user = matomo
# Include custom configuration in the instance deployed by stack/lamp
path = ${custom-instance-configuration:output}
[custom-instance-configuration]
# Define custom configuration for the instance deployed by stack/lamp
recipe = slapos.recipe.template
output = ${buildout:directory}/custom-matomo-instance-configuration.cfg
inline =
[apache-php-service]
# Pre-fill the database installation form with the required values
environment =
MATOMO_DATABASE_HOST=$${mariadb-urlparse:host}:$${mariadb-urlparse:port}
MATOMO_DATABASE_ADAPTER=mysql
MATOMO_DATABASE_TABLES_PREFIX=matomo_
MATOMO_DATABASE_USERNAME=$${mariadb-urlparse:username}
MATOMO_DATABASE_PASSWORD=$${mariadb-urlparse:password}
MATOMO_DATABASE_DBNAME=$${mariadb-urlparse:path}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment