Deactivated public api of listmonk by default, which was a security hole

This commit is contained in:
2024-11-07 19:56:29 -03:00
parent e009a9d42c
commit 3e49bd84dc
3 changed files with 13 additions and 0 deletions

View File

@@ -2,6 +2,15 @@
- name: "include docker/compose/database.yml"
include_tasks: docker/compose/database.yml
- name: Set nginx_docker_reverse_proxy_extra_configuration based on listmonk_public_api_activated
set_fact:
nginx_docker_reverse_proxy_extra_configuration: >-
{% if not listmonk_public_api_activated %}
{{ lookup('file', '{{ role_path }}/files/deactivate-public-api.conf') }}
{% else %}
""
{% endif %}
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml