mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-19 08:09:36 +00:00
Rename matrix_beeper_linkedin_* variables to matrix_bridge_beeper_linkedin_*
Part of adopting a uniform naming policy for bridge variables, where the variable prefix matches the role directory name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
# Homeserver details
|
||||
homeserver:
|
||||
# The address that this appservice can use to connect to the homeserver.
|
||||
address: {{ matrix_beeper_linkedin_homeserver_address | to_json }}
|
||||
address: {{ matrix_bridge_beeper_linkedin_homeserver_address | to_json }}
|
||||
# The domain of the homeserver (for MXIDs, etc).
|
||||
domain: {{ matrix_beeper_linkedin_homeserver_domain | to_json }}
|
||||
domain: {{ matrix_bridge_beeper_linkedin_homeserver_domain | to_json }}
|
||||
# Whether or not to verify the SSL certificate of the homeserver.
|
||||
# Only applies if address starts with https://
|
||||
verify_ssl: true
|
||||
@@ -21,13 +21,13 @@ homeserver:
|
||||
message_send_checkpoint_endpoint: null
|
||||
# Whether asynchronous uploads via MSC2246 should be enabled for media.
|
||||
# Requires a media repo that supports MSC2246.
|
||||
async_media: {{ matrix_beeper_linkedin_homeserver_async_media | to_json }}
|
||||
async_media: {{ matrix_bridge_beeper_linkedin_homeserver_async_media | to_json }}
|
||||
|
||||
# Application service host/registration related details
|
||||
# Changing these values requires regeneration of the registration.
|
||||
appservice:
|
||||
# The address that the homeserver can use to connect to this appservice.
|
||||
address: {{ matrix_beeper_linkedin_appservice_address | to_json }}
|
||||
address: {{ matrix_bridge_beeper_linkedin_appservice_address | to_json }}
|
||||
|
||||
# The hostname and port where this appservice should listen.
|
||||
hostname: 0.0.0.0
|
||||
@@ -40,7 +40,7 @@ appservice:
|
||||
# Format examples:
|
||||
# SQLite: sqlite:filename.db
|
||||
# Postgres: postgres://username:password@hostname/dbname
|
||||
database: {{ matrix_beeper_linkedin_appservice_database_uri | to_json }}
|
||||
database: {{ matrix_bridge_beeper_linkedin_appservice_database_uri | to_json }}
|
||||
# Additional arguments for asyncpg.create_pool() or sqlite3.connect()
|
||||
# https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
|
||||
# https://docs.python.org/3/library/sqlite3.html#sqlite3.connect
|
||||
@@ -54,21 +54,21 @@ appservice:
|
||||
# Used by things like mautrix-manager (https://github.com/tulir/mautrix-manager).
|
||||
provisioning:
|
||||
# Whether or not the provisioning API should be enabled.
|
||||
enabled: {{ matrix_beeper_linkedin_provisioning_enabled | to_json }}
|
||||
enabled: {{ matrix_bridge_beeper_linkedin_provisioning_enabled | to_json }}
|
||||
# The prefix to use in the provisioning API endpoints.
|
||||
prefix: /_matrix/provision/v1
|
||||
# The shared secret to authorize users of the API.
|
||||
# Set to "generate" to generate and save a new token.
|
||||
shared_secret: {{ matrix_beeper_linkedin_provisioning_shared_secret | to_json }}
|
||||
shared_secret: {{ matrix_bridge_beeper_linkedin_provisioning_shared_secret | to_json }}
|
||||
|
||||
# The unique ID of this appservice.
|
||||
id: beeper_linkedin
|
||||
# Username of the appservice bot.
|
||||
bot_username: {{ matrix_beeper_linkedin_appservice_bot_username | to_json }}
|
||||
bot_username: {{ matrix_bridge_beeper_linkedin_appservice_bot_username | to_json }}
|
||||
# Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
|
||||
# to leave display name/avatar as-is.
|
||||
bot_displayname: {{ matrix_beeper_linkedin_appservice_bot_displayname | to_json(ensure_ascii=False) }}
|
||||
bot_avatar: {{ matrix_beeper_linkedin_appservice_bot_avatar | to_json }}
|
||||
bot_displayname: {{ matrix_bridge_beeper_linkedin_appservice_bot_displayname | to_json(ensure_ascii=False) }}
|
||||
bot_avatar: {{ matrix_bridge_beeper_linkedin_appservice_bot_avatar | to_json }}
|
||||
|
||||
# Whether or not to receive ephemeral events via appservice transactions.
|
||||
# Requires MSC2409 support (i.e. Synapse 1.22+).
|
||||
@@ -76,8 +76,8 @@ appservice:
|
||||
ephemeral_events: false
|
||||
|
||||
# Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
|
||||
as_token: {{ matrix_beeper_linkedin_appservice_token | to_json }}
|
||||
hs_token: {{ matrix_beeper_linkedin_homeserver_token | to_json }}
|
||||
as_token: {{ matrix_bridge_beeper_linkedin_appservice_token | to_json }}
|
||||
hs_token: {{ matrix_bridge_beeper_linkedin_homeserver_token | to_json }}
|
||||
|
||||
# Segment-compatible analytics endpoint for tracking some events, like provisioning API login and encryption errors.
|
||||
analytics:
|
||||
@@ -113,7 +113,7 @@ bridge:
|
||||
space_support:
|
||||
# Whether or not to enable creating a space per user and inviting the
|
||||
# user (as well as all of the puppets) to that space.
|
||||
enable: {{ matrix_beeper_linkedin_bridge_space_support_enable | to_json }}
|
||||
enable: {{ matrix_bridge_beeper_linkedin_bridge_space_support_enable | to_json }}
|
||||
# The name of the space
|
||||
name: "LinkedIn"
|
||||
# Displayname template for LinkedIn users.
|
||||
@@ -134,7 +134,7 @@ bridge:
|
||||
set_topic_on_dms: true
|
||||
|
||||
# The prefix for commands. Only required in non-management rooms.
|
||||
command_prefix: {{ matrix_beeper_linkedin_command_prefix | to_json }}
|
||||
command_prefix: {{ matrix_bridge_beeper_linkedin_command_prefix | to_json }}
|
||||
|
||||
# Number of chats to sync (and create portals for) on startup/login.
|
||||
# Set 0 to disable automatic syncing.
|
||||
@@ -150,7 +150,7 @@ bridge:
|
||||
# and is therefore prone to race conditions.
|
||||
sync_direct_chat_list: false
|
||||
# Servers to always allow double puppeting from
|
||||
double_puppet_server_map: {{ matrix_beeper_linkedin_bridge_double_puppet_server_map | to_json }}
|
||||
double_puppet_server_map: {{ matrix_bridge_beeper_linkedin_bridge_double_puppet_server_map | to_json }}
|
||||
# Allow using double puppeting from any server with a valid client .well-known file.
|
||||
double_puppet_allow_discovery: false
|
||||
# Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
|
||||
@@ -160,10 +160,10 @@ bridge:
|
||||
# manually.
|
||||
# If using this for other servers than the bridge's server,
|
||||
# you must also set the URL in the double_puppet_server_map.
|
||||
login_shared_secret_map: {{ matrix_beeper_linkedin_bridge_login_shared_secret_map | to_json }}
|
||||
login_shared_secret_map: {{ matrix_bridge_beeper_linkedin_bridge_login_shared_secret_map | to_json }}
|
||||
# Whether or not to bridge presence in both directions. LinkedIn allows users not to broadcast
|
||||
# presence, but then it won't send other users' presence to the client.
|
||||
presence: {{ matrix_beeper_linkedin_bridge_presence | to_json }}
|
||||
presence: {{ matrix_bridge_beeper_linkedin_bridge_presence | to_json }}
|
||||
# Whether or not to update avatars when syncing all contacts at startup.
|
||||
update_avatar_initial_sync: true
|
||||
# Whether or not created rooms should have federation enabled.
|
||||
@@ -180,17 +180,17 @@ bridge:
|
||||
# See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
|
||||
encryption:
|
||||
# Allow encryption, work in group chat rooms with e2ee enabled
|
||||
allow: {{ matrix_beeper_linkedin_bridge_encryption_allow | to_json }}
|
||||
allow: {{ matrix_bridge_beeper_linkedin_bridge_encryption_allow | to_json }}
|
||||
# Default to encryption, force-enable encryption in all portals the bridge creates
|
||||
# This will cause the bridge bot to be in private chats for the encryption to work properly.
|
||||
default: {{ matrix_beeper_linkedin_bridge_encryption_default | to_json }}
|
||||
default: {{ matrix_bridge_beeper_linkedin_bridge_encryption_default | to_json }}
|
||||
# Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
|
||||
appservice: {{ matrix_beeper_linkedin_bridge_encryption_appservice | to_json }}
|
||||
appservice: {{ matrix_bridge_beeper_linkedin_bridge_encryption_appservice | to_json }}
|
||||
# Require encryption, drop any unencrypted messages.
|
||||
require: {{ matrix_beeper_linkedin_bridge_encryption_require | to_json }}
|
||||
require: {{ matrix_bridge_beeper_linkedin_bridge_encryption_require | to_json }}
|
||||
# Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
|
||||
# You must use a client that supports requesting keys from other users to use this feature.
|
||||
allow_key_sharing: {{ matrix_beeper_linkedin_bridge_encryption_key_sharing_allow | to_json }}
|
||||
allow_key_sharing: {{ matrix_bridge_beeper_linkedin_bridge_encryption_key_sharing_allow | to_json }}
|
||||
# Options for deleting megolm sessions from the bridge.
|
||||
delete_keys:
|
||||
# Beeper-specific: delete outbound sessions when hungryserv confirms
|
||||
@@ -314,7 +314,7 @@ bridge:
|
||||
# * - All Matrix users
|
||||
# domain - All users on that homeserver
|
||||
# mxid - Specific user
|
||||
permissions: {{ matrix_beeper_linkedin_bridge_permissions | to_json }}
|
||||
permissions: {{ matrix_bridge_beeper_linkedin_bridge_permissions | to_json }}
|
||||
|
||||
# Python logging configuration.
|
||||
#
|
||||
@@ -334,9 +334,9 @@ logging:
|
||||
formatter: colored
|
||||
loggers:
|
||||
mau:
|
||||
level: {{ matrix_beeper_linkedin_logging_level|to_json }}
|
||||
level: {{ matrix_bridge_beeper_linkedin_logging_level|to_json }}
|
||||
aiohttp:
|
||||
level: {{ matrix_beeper_linkedin_logging_level|to_json }}
|
||||
level: {{ matrix_bridge_beeper_linkedin_logging_level|to_json }}
|
||||
root:
|
||||
level: DEBUG
|
||||
handlers: [console]
|
||||
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
#jinja2: lstrip_blocks: True
|
||||
[Unit]
|
||||
Description=Matrix Beeper Linkedin bridge
|
||||
{% for service in matrix_beeper_linkedin_systemd_required_services_list %}
|
||||
{% for service in matrix_bridge_beeper_linkedin_systemd_required_services_list %}
|
||||
Requires={{ service }}
|
||||
After={{ service }}
|
||||
{% endfor %}
|
||||
{% for service in matrix_beeper_linkedin_systemd_wanted_services_list %}
|
||||
{% for service in matrix_bridge_beeper_linkedin_systemd_wanted_services_list %}
|
||||
Wants={{ service }}
|
||||
{% endfor %}
|
||||
DefaultDependencies=no
|
||||
@@ -22,17 +22,17 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
|
||||
--log-driver=none \
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
|
||||
--cap-drop=ALL \
|
||||
--network={{ matrix_beeper_linkedin_container_network }} \
|
||||
--mount type=bind,src={{ matrix_beeper_linkedin_config_path }},dst=/config,ro \
|
||||
--network={{ matrix_bridge_beeper_linkedin_container_network }} \
|
||||
--mount type=bind,src={{ matrix_bridge_beeper_linkedin_config_path }},dst=/config,ro \
|
||||
--workdir=/opt/linkedin-matrix \
|
||||
{% for arg in matrix_beeper_linkedin_container_extra_arguments %}
|
||||
{% for arg in matrix_bridge_beeper_linkedin_container_extra_arguments %}
|
||||
{{ arg }} \
|
||||
{% endfor %}
|
||||
{{ matrix_beeper_linkedin_container_image }} \
|
||||
{{ matrix_bridge_beeper_linkedin_container_image }} \
|
||||
python3 -m linkedin_matrix -c /config/config.yaml -r /config/registration.yaml --no-update
|
||||
|
||||
{% if matrix_beeper_linkedin_container_network != 'host' %}
|
||||
{% for network in matrix_beeper_linkedin_container_additional_networks %}
|
||||
{% if matrix_bridge_beeper_linkedin_container_network != 'host' %}
|
||||
{% for network in matrix_bridge_beeper_linkedin_container_additional_networks %}
|
||||
ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-beeper-linkedin
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user