summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-05-28 13:37:31 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-05-28 13:37:31 +0200
commit1181ab454e31a5f8c47fb337da572b744d934a88 (patch)
tree019b8dca141847996b1e71e2abc70459597fe013 /doc/en
parentc676148a63f351275db7ec2f0634f09a11f996fd (diff)
downloadweechat-1181ab454e31a5f8c47fb337da572b744d934a88.zip
doc: use secured data in relay examples (user's guide)
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_user.en.adoc15
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc
index 5e95f60ce..c48efbb57 100644
--- a/doc/en/weechat_user.en.adoc
+++ b/doc/en/weechat_user.en.adoc
@@ -3486,10 +3486,11 @@ The Relay plugin is used to relay data via network, using different protocols:
[[relay_password]]
==== Password
-It is highly recommended to set a password for relay, with command:
+It is highly recommended to set a password for relay, with these commands:
----
-/set relay.network.password "mypassword"
+/secure set relay mypassword
+/set relay.network.password "${sec.data.relay}"
----
This password is used for _irc_ and _weechat_ protocols.
@@ -3519,7 +3520,8 @@ It must be a string encoded in base32, with only letters and digits from 2 to 7,
for example:
----
-/set relay.network.totp_secret "secretpasswordbase32"
+/secure set relay_totp secretpasswordbase32
+/set relay.network.totp_secret "${sec.data.relay_totp}"
----
[[relay_ssl]]
@@ -3581,11 +3583,12 @@ Now you can connect on port 8000 with any IRC client using server password
"mypassword" (or "libera:mypassword" if no server was specified in the relay).
For example if you use WeeChat as IRC client of the relay, with a server called
-"relay" and the relay password "secret", you can setup the password with this
-command:
+"relay" and the relay password "secret", you can setup the password with these
+commands:
----
-/set irc.server.relay.password "libera:secret"
+/secure set relay_libera libera:secret
+/set irc.server.relay.password "${sec.data.relay_libera}"
----
[[relay_weechat_protocol]]