Use cookie auth for Tor control

This commit is contained in:
runbtc 2024-05-06 21:45:49 -07:00
parent 56a15fdca5
commit 295228b5e2
No known key found for this signature in database
GPG Key ID: B365F26B1E726291
3 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,8 @@ JAVA_OPTS="-Xms4096M -Xmx4096M -XX:+ExitOnOutOfMemoryError"
# use external tor (change to -1 for internal tor binary)
BISQ_EXTERNAL_TOR_PORT=9051
BISQ_EXTERNAL_TOR_CONTROL_USE_COOKIE=true
BISQ_EXTERNAL_TOR_CONTROL_COOKIE_FILE=/var/lib/tor/control_auth_cookie
# bitcoin rpc credentials
BITCOIN_RPC_USER=__BITCOIN_RPC_USER__

View File

@ -28,6 +28,8 @@ ExecStart=/bin/bash __BISQ_HOME__/__BISQ_REPO_NAME__/${BISQ_ENTRYPOINT} \
--dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN} \
--dumpStatistics=${BISQ_DUMP_STATISTICS} \
--torControlPort=${BISQ_EXTERNAL_TOR_PORT} \
--torControlUseSafeCookieAuth=${BISQ_EXTERNAL_TOR_CONTROL_USE_COOKIE} \
--torControlCookieFile=${BISQ_EXTERNAL_TOR_CONTROL_COOKIE_FILE} \
ExecStop=/bin/kill ${MAINPID} ; sleep 5
Restart=on-failure

View File

@ -3,7 +3,7 @@ SOCKSPort 9050
ControlPort 9051
Log notice syslog
CookieAuthentication 0
CookieAuthentication 1
CookieAuthFileGroupReadable 1
DataDirectoryGroupReadable 1