Bläddra i källkod

Apply suggestions from code review

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
pull/3313/head
Chasethechicken 1 år sedan
committed by Chasetheckicken
förälder
incheckning
0299b74440
Det gick inte att extrahera signatur
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. +1
    -1
      roles/custom/matrix-bot-draupnir/tasks/setup_install.yml
  2. +2
    -2
      roles/custom/matrix-bot-draupnir/templates/production.yaml.j2

+ 1
- 1
roles/custom/matrix-bot-draupnir/tasks/setup_install.yml Visa fil

@@ -17,7 +17,7 @@
- {path: "{{ matrix_bot_draupnir_docker_src_files_path }}", when: "{{ matrix_bot_draupnir_container_image_self_build }}"} - {path: "{{ matrix_bot_draupnir_docker_src_files_path }}", when: "{{ matrix_bot_draupnir_container_image_self_build }}"}
when: "item.when | bool" when: "item.when | bool"


- name: Ensure matrix-bot-draupnir is configured
- name: Ensure matrix-bot-draupnir support files installed
ansible.builtin.template: ansible.builtin.template:
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"


+ 2
- 2
roles/custom/matrix-bot-draupnir/templates/production.yaml.j2 Visa fil

@@ -248,7 +248,7 @@ web:
# to configure a reverse proxy, see e.g. test/nginx.conf # to configure a reverse proxy, see e.g. test/nginx.conf
abuseReporting: abuseReporting:
# Whether to enable this feature. # Whether to enable this feature.
enabled: {{ matrix_bot_draupnir_abuse_reporting_enabled }}
enabled: {{ matrix_bot_draupnir_abuse_reporting_enabled | to_json }}
{% endif %} {% endif %}


# Whether or not to actively poll synapse for abuse reports, to be used # Whether or not to actively poll synapse for abuse reports, to be used
@@ -258,4 +258,4 @@ pollReports: false


# Whether or not new reports, received either by webapi or polling, # Whether or not new reports, received either by webapi or polling,
# should be printed to our managementRoom. # should be printed to our managementRoom.
displayReports: {{ matrix_bot_draupnir_display_reports }}
displayReports: {{ matrix_bot_draupnir_display_reports | to_json }}

Laddar…
Avbryt
Spara