Optimized Listmonk variables

This commit is contained in:
2025-09-12 13:04:06 +02:00
parent b7a7be4737
commit a6a2be4373
2 changed files with 10 additions and 11 deletions

View File

@@ -3,8 +3,9 @@
include_role: include_role:
name: sys-stk-full-stateful name: sys-stk-full-stateful
vars: vars:
docker_compose_flush_handlers: false
proxy_extra_configuration: >- proxy_extra_configuration: >-
{% if not applications | get_app_conf(application_id, 'public_api_activated', True) %} {% if not LISTMONK_PUBLIC_API_ENABLED | bool %}
{{ lookup('file', '{{ playbook_dir }}/roles/web-app-listmonk/files/deactivate-public-api.conf') }} {{ lookup('file', '{{ playbook_dir }}/roles/web-app-listmonk/files/deactivate-public-api.conf') }}
{% else %} {% else %}
"" ""

View File

@@ -1,17 +1,15 @@
# General # General
application_id: "web-app-listmonk" application_id: "web-app-listmonk"
database_type: "postgres" database_type: "postgres"
container_port: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.port') }}" container_port: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.port') }}"
# Docker
docker_compose_flush_handlers: false
# Listmonk # Listmonk
LISTMONK_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.version') }}" LISTMONK_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.version') }}"
LISTMONK_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.image') }}" LISTMONK_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.image') }}"
LISTMONK_NAME: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.name') }}" LISTMONK_NAME: "{{ applications | get_app_conf(application_id, 'docker.services.listmonk.name') }}"
LISTMONK_PUBLIC_API_ENABLED: "{{ applications | get_app_conf(application_id, 'public_api_activated') }}"
LISTMONK_SETTINGS: LISTMONK_SETTINGS:
- key: "app.root_url" - key: "app.root_url"
value: '"{{ domains | get_url(application_id, WEB_PROTOCOL) }}"' value: '"{{ domains | get_url(application_id, WEB_PROTOCOL) }}"'