Skip to content

Commit

Permalink
Fix some unintentional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwiggers committed Dec 4, 2024
1 parent 4d03aa4 commit 8f29dc6
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions roles/custom/matrix-bridge-appservice-irc/templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ homeserver:

# Configuration specific to the IRC service
ircService:

# WARNING: The bridge needs to send plaintext passwords to the IRC server, it cannot
# send a password hash. As a result, passwords (NOT hashes) are stored encrypted in
# the database.
#
# To generate a .pem file:
# $ openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048
#
# The path to the RSA PEM-formatted private key to use when encrypting IRC passwords
# for storage in the database. Passwords are stored by using the admin room command
# `!storepass example.com passw0rd. When a connection is made to IRC on behalf of
# the Matrix user, this password will be sent as the server password (PASS command).
passwordEncryptionKeyPath: "/data/passkey.pem" # does not typically need modification

# Config for Matrix -> IRC bridging
matrixHandler:
# Cache this many Matrix events in memory to be used for m.relates_to messages (usually replies).
Expand Down Expand Up @@ -84,10 +98,10 @@ ircService:
# Level to log on console/logfile. One of error|warn|info|debug
level: "debug"
# The file location to log to. This is relative to the project directory.
logfile: "debug.log"
#logfile: "debug.log"
# The file location to log errors to. This is relative to the project
# directory.
errfile: "errors.log"
#errfile: "errors.log"
# Whether to log to the console or not.
toConsole: true
# The max number of files to keep. Files will be overwritten eventually due
Expand Down Expand Up @@ -152,4 +166,4 @@ database:
# Either a PostgreSQL connection string, or a path to the NeDB storage directory.
# For postgres, it must start with postgres://
# For NeDB, it must start with nedb://. The path is relative to the project directory.
connectionString: {{ matrix_appservice_irc_database_connectionString
connectionString: {{ matrix_appservice_irc_database_connectionString | to_json }}

0 comments on commit 8f29dc6

Please sign in to comment.