mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
- Removed outdated Installation.md (manual plugin instructions no longer needed) - Added schema/main.yml with validation for secret_pin - Added config.php.j2 template to manage DB + admin config - Refactored tasks/main.yml to deploy config.php instead of legacy docker-compose - Removed setup-domain.yml (TLS/domain handling moved to core roles) - Updated docker-compose.yml.j2 to mount config.php and use new vars - Cleaned up vars/main.yml: standardized MYBB_* variable names, added MYBB_SECRET_PIN, config paths, and container port See ChatGPT conversation: https://chatgpt.com/share/68b0ae26-93ec-800f-8785-0da7c9303090
26 lines
1.2 KiB
YAML
26 lines
1.2 KiB
YAML
---
|
|
# General
|
|
application_id: "web-app-mybb"
|
|
database_type: "mariadb"
|
|
container_port: 80
|
|
|
|
# MyBB
|
|
|
|
## Credentials
|
|
MYBB_SECRET_PIN: "{{ applications | get_app_conf(application_id, 'credentials.secret_pin') }}"
|
|
|
|
## Server
|
|
MYBB_NGINX_CONF_DIR_HOST: "{{ docker_compose.directories.instance }}conf.d/"
|
|
MYBB_NGINX_CONF_DIR_DOCK: "{{ NGINX.DIRECTORIES.CONFIGURATION }}"
|
|
MYBB_NGINX_DEFAULT_CONF_HOST: "{{ MYBB_NGINX_CONF_DIR_HOST }}default.conf"
|
|
|
|
## Application
|
|
MYBB_ADMIN_USER_ID: 1
|
|
MYBB_DOMAIN: "{{ domains | get_domain(application_id) }}"
|
|
MYBB_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.mybb.version') }}"
|
|
MYBB_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.mybb.image') }}"
|
|
MYBB_CONTAINER: "{{ applications | get_app_conf(application_id, 'docker.services.mybb.name') }}"
|
|
MYBB_VOLUME: "{{ applications | get_app_conf(application_id, 'docker.volumes.data') }}"
|
|
MYBB_CONFIG_HOST_PATH: "{{ [docker_compose.directories.instance, 'config.php'] | path_join }}"
|
|
MYBB_CONFIG_DOCK_PATH: "/var/www/html/inc/config.php"
|