Old config (version 0.15 and 0.16.0/0.16.3):
prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
walletdir=/path/to/wallet/
wallet=mywallet.dat
It worked pretty nice.
UPD: it does not worked in version 0.17.0 ! BTC client made a new wallet.dat file
On version 0.17.0 i read what i can use full pathes to wallet files.
prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
wallet=/path/to/wallet/mywallet.dat
FAILS. It created wallet.dat in /path/to/wallet/ folder
prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
walletdir=/path/to/wallet/
wallet=/path/to/wallet/mywallet.dat
FAILS. It created wallet.dat in ~/.bitcoin/wallets folder.
Current config:
prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
walletdir=/path/to/wallet/
AND i renamed mywallet.dat into wallet.dat to let client work.
I run bitcoin core client 0.17.0 on Linux 4.9.0-6-amd64 [#1](/bitcoin-bitcoin/1/) SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux.