Explorar el Código

Remove logging to /var/log and make readonly

pull/1894/head
Julian-Samuel Gebühr hace 3 años
padre
commit
d5c82a5221
Se han modificado 2 ficheros con 3 adiciones y 8 borrados
  1. +1
    -7
      roles/matrix-bot-maubot/templates/config/config.yaml.j2
  2. +2
    -1
      roles/matrix-bot-maubot/templates/systemd/matrix-maubot.service.j2

+ 1
- 7
roles/matrix-bot-maubot/templates/config/config.yaml.j2 Ver fichero

@@ -108,12 +108,6 @@ logging:
normal: normal:
format: '[%(asctime)s] [%(levelname)s@%(name)s] %(message)s' format: '[%(asctime)s] [%(levelname)s@%(name)s] %(message)s'
handlers: handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: normal
filename: /var/log/maubot.log
maxBytes: 10485760
backupCount: 10
console: console:
class: logging.StreamHandler class: logging.StreamHandler
formatter: colored formatter: colored
@@ -126,4 +120,4 @@ logging:
level: INFO level: INFO
root: root:
level: DEBUG level: DEBUG
handlers: [file, console]
handlers: [console]

+ 2
- 1
roles/matrix-bot-maubot/templates/systemd/matrix-maubot.service.j2 Ver fichero

@@ -20,9 +20,10 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-maubot \
--log-driver=none \ --log-driver=none \
-e UID={{ matrix_user_uid }} \ -e UID={{ matrix_user_uid }} \
-e GID={{ matrix_user_gid }} \ -e GID={{ matrix_user_gid }} \
--read-only \
-v {{ matrix_bot_maubot_data_path }}:{{ matrix_bot_maubot_container_data_dir }}:z \ -v {{ matrix_bot_maubot_data_path }}:{{ matrix_bot_maubot_container_data_dir }}:z \
{% for arg in matrix_bot_maubot_container_extra_arguments %} {% for arg in matrix_bot_maubot_container_extra_arguments %}
{{ arg }} \
{{ arg }} \
{% endfor %} {% endfor %}
--network={{ matrix_docker_network }} \ --network={{ matrix_docker_network }} \
{% if matrix_bot_maubot_expose_management_interface|bool %} {% if matrix_bot_maubot_expose_management_interface|bool %}


Cargando…
Cancelar
Guardar