Update development doc move lnd dir permissions (#1496)

* Update development doc to explain lnd dir permissions in backend section

* Try fix formatting of tor env vars

* Try again fix formatting of tor env vars
This commit is contained in:
Jonathan Zernik 2021-10-04 19:18:45 -07:00 committed by GitHub
parent 411f050c93
commit b020b9aff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,11 +21,6 @@
You can go to http://localhost:12995/ to see the containerized squeaknode.
- You may need to change the permissions of the `~/.lnd` directory after docker containers start:
```
$ sudo chmod -R 755 ~/.lnd/
```
#### Squeaknode backend
- Install squeaknode:
@ -35,14 +30,26 @@
$ pip install -r requirements.txt
$ python setup.py install
```
- Run squeaknode with authentication disabled:
- Make sure that `~/.lnd` directory (created by docker container) has read permissions. You may need to change the permissions:
```
$ SQUEAKNODE_WEBADMIN_ENABLED=TRUE SQUEAKNODE_WEBADMIN_LOGIN_DISABLED=TRUE SQUEAKNODE_WEBADMIN_ALLOW_CORS=TRUE SQUEAKNODE_NETWORK=testnet squeaknode --config config.ini
$ sudo chmod -R 755 ~/.lnd/
```
To use a tor proxy, include the following environment variables:
- Run squeaknode with authentication disabled:
```
$ SQUEAKNODE_NODE_TOR_PROXY_IP=127.0.0.1 SQUEAKNODE_NODE_TOR_PROXY_PORT=9150
$ SQUEAKNODE_WEBADMIN_ENABLED=TRUE \
SQUEAKNODE_WEBADMIN_LOGIN_DISABLED=TRUE \
SQUEAKNODE_WEBADMIN_ALLOW_CORS=TRUE \
SQUEAKNODE_NETWORK=testnet \
squeaknode --config config.ini
```
- To use a tor proxy, include the following environment variables:
```
$ SQUEAKNODE_NODE_TOR_PROXY_IP=127.0.0.1 \
SQUEAKNODE_NODE_TOR_PROXY_PORT=9150 \
...
```