Use |to_json in more places in matrix-appservice-discord config

I don't think this was causing an issue, but it might
if the bot token has a more special value in the future.

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/828
This commit is contained in:
Slavi Pantaleev 2021-01-26 10:00:07 +02:00
parent d9bf2f59db
commit 26542308b3

View file

@ -1,10 +1,10 @@
#jinja2: lstrip_blocks: "True" #jinja2: lstrip_blocks: "True"
bridge: bridge:
# Domain part of the bridge, e.g. matrix.org # Domain part of the bridge, e.g. matrix.org
domain: {{ matrix_appservice_discord_bridge_domain }} domain: {{ matrix_appservice_discord_bridge_domain|to_json }}
# This should be your publically facing URL because Discord may use it to # This should be your publically facing URL because Discord may use it to
# fetch media from the media store. # fetch media from the media store.
homeserverUrl: {{ matrix_appservice_discord_bridge_homeserverUrl }} homeserverUrl: {{ matrix_appservice_discord_bridge_homeserverUrl|to_json }}
# Interval at which to process users in the 'presence queue'. If you have # Interval at which to process users in the 'presence queue'. If you have
# 5 users, one user will be processed every 500 milliseconds according to the # 5 users, one user will be processed every 500 milliseconds according to the
# value below. This has a minimum value of 250. # value below. This has a minimum value of 250.
@ -33,7 +33,7 @@ bridge:
# Authentication configuration for the discord bot. # Authentication configuration for the discord bot.
auth: auth:
clientID: {{ matrix_appservice_discord_client_id|string|to_json }} clientID: {{ matrix_appservice_discord_client_id|string|to_json }}
botToken: {{ matrix_appservice_discord_bot_token }} botToken: {{ matrix_appservice_discord_bot_token|to_json }}
# You must enable "Privileged Gateway Intents" in your bot settings on discord.com (e.g. https://discord.com/developers/applications/12345/bot) # You must enable "Privileged Gateway Intents" in your bot settings on discord.com (e.g. https://discord.com/developers/applications/12345/bot)
# for this to work # for this to work
usePrivilegedIntents: {{ matrix_appservice_discord_auth_usePrivilegedIntents|to_json }} usePrivilegedIntents: {{ matrix_appservice_discord_auth_usePrivilegedIntents|to_json }}