mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Use cookie auth for Tor control
This commit is contained in:
parent
56a15fdca5
commit
295228b5e2
@ -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__
|
||||
|
@ -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
|
||||
|
@ -3,7 +3,7 @@ SOCKSPort 9050
|
||||
ControlPort 9051
|
||||
Log notice syslog
|
||||
|
||||
CookieAuthentication 0
|
||||
CookieAuthentication 1
|
||||
CookieAuthFileGroupReadable 1
|
||||
DataDirectoryGroupReadable 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user