mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-08 03:07:14 +02:00
- add role files (docs, vars, config, tasks, schema, templates) - networks: add web-app-magento 192.168.103.208/28 - ports: add localhost http 8052 Conversation: https://chatgpt.com/share/68b8820f-f864-800f-8819-da509b99cee2
40 lines
1.4 KiB
Django/Jinja
40 lines
1.4 KiB
Django/Jinja
# Magento environment
|
|
# Base references:
|
|
# - https://github.com/bitnami/containers/tree/main/bitnami/magento
|
|
|
|
# Host & URLs
|
|
MAGENTO_HOST="{{ domains | get_domain(application_id) }}"
|
|
MAGENTO_BASE_URL="{{ domains | get_url(application_id, WEB_PROTOCOL) }}/"
|
|
MAGENTO_ENABLE_HTTPS={{ (WEB_PORT == 443) | string | lower }}
|
|
|
|
# Admin (seed from global administrator)
|
|
MAGENTO_USERNAME="{{ users.administrator.username }}"
|
|
MAGENTO_PASSWORD="{{ applications | get_app_conf(application_id, 'credentials.admin_password') }}"
|
|
MAGENTO_EMAIL="{{ users.administrator.email }}"
|
|
MAGENTO_FIRST_NAME="{{ users.administrator.firstname | default('Admin') }}"
|
|
MAGENTO_LAST_NAME="{{ users.administrator.lastname | default('User') }}"
|
|
|
|
# Database (central DB preferred)
|
|
MARIADB_HOST="{{ database_host }}"
|
|
MARIADB_PORT_NUMBER="{{ database_port }}"
|
|
MAGENTO_DATABASE_USER="{{ database_username }}"
|
|
MAGENTO_DATABASE_PASSWORD="{{ database_password }}"
|
|
MAGENTO_DATABASE_NAME="{{ database_name }}"
|
|
|
|
# Search (Magento 2.4+)
|
|
MAGENTO_SEARCH_ENGINE="opensearch"
|
|
OPENSEARCH_HOST="search"
|
|
OPENSEARCH_PORT_NUMBER="9200"
|
|
|
|
# SMTP
|
|
SMTP_HOST="{{ SYSTEM_EMAIL.HOST }}"
|
|
SMTP_PORT="{{ SYSTEM_EMAIL.PORT }}"
|
|
SMTP_USER="{{ users['no-reply'].email }}"
|
|
SMTP_PASSWORD="{{ users['no-reply'].mailu_token }}"
|
|
SMTP_PROTOCOL={{ SYSTEM_EMAIL.TLS | ternary('tls','ssl') }}
|
|
|
|
# Misc
|
|
ALLOW_EMPTY_PASSWORD="no"
|
|
BITNAMI_DEBUG="false"
|
|
PHP_MEMORY_LIMIT="1024M"
|