Renamed general and mode constants and implemented a check to verify that constants are just defined ones over the whole repository

This commit is contained in:
2025-08-13 19:10:44 +02:00
parent 004507e233
commit db0e030900
171 changed files with 474 additions and 345 deletions

View File

@@ -3,8 +3,8 @@
## Multi Domain Installation
If you want to access your mybb over multiple domains, keep the following in mind:
- Set Cookie Domain to nothing
- Access mybb for installation via mybb.<primary_domain>
- Set the Board Url to mybb.<primary_domain>
- Access mybb for installation via mybb.<PRIMARY_DOMAIN>
- Set the Board Url to mybb.<PRIMARY_DOMAIN>
## Manual Installation of MyBB Plugins

View File

@@ -18,4 +18,4 @@ docker:
server:
domains:
canonical:
- mybb.{{ primary_domain }}
- mybb.{{ PRIMARY_DOMAIN }}

View File

@@ -25,7 +25,7 @@
- name: "create {{docker_compose_instance_confd_defaultconf_file}}"
template:
src: "default.conf"
src: "default.conf.j2"
dest: "{{docker_compose_instance_confd_defaultconf_file}}"
notify: docker compose up

View File

@@ -4,7 +4,7 @@ upstream mybb {
server {
listen 80;
error_log /proc/self/fd/2 {% if enable_debug | bool %}debug{% else %}warn{% endif %};
error_log /proc/self/fd/2 {% if MODE_DEBUG | bool %}debug{% else %}warn{% endif %};
root /var/www/html;
index index.html index.php;

View File

@@ -3,7 +3,7 @@ application_id: "web-app-mybb"
docker_compose_instance_confd_directory: "{{docker_compose.directories.instance}}conf.d/"
docker_compose_instance_confd_defaultconf_file: "{{docker_compose_instance_confd_directory}}default.conf"
target_mount_conf_d_directory: "{{nginx.directories.http.servers}}"
source_domain: "mybb.{{primary_domain}}"
source_domain: "mybb.{{PRIMARY_DOMAIN}}"
database_type: "mariadb"
mybb_version: "{{ applications | get_app_conf(application_id, 'docker.services.mybb.version', True) }}"
mybb_image: "{{ applications | get_app_conf(application_id, 'docker.services.mybb.image', True) }}"