command-line options for server: daemon, ssl certificates, tor and others (#70)

* --daemon and --stop options for server

* --restart and --force option

* ssl certificates and tor

* tor key path fix...

* pass host to flask

* fix bug with switching between nodes

* docs on node setup - reverse proxy and self-signed certs

* typo
This commit is contained in:
Stepan Snigirev 2020-02-25 20:57:36 +01:00 committed by GitHub
parent 556ec5f961
commit 9039bc2c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 358 additions and 35 deletions

View file

@ -24,7 +24,7 @@ HWI support requires `libusb` (necessary? Or is `pip install libusb1` sufficient
* Ubuntu/Debian: `sudo apt install libusb-1.0-0-dev libudev-dev`
* macOS: `brew install libusb`
```
```sh
git clone https://github.com/cryptoadvance/specter-desktop.git
cd specter-desktop
virtualenv --python=python3 .env
@ -35,15 +35,29 @@ pip3 install -e .
Run the server:
```
```sh
cd specter-desktop
python3 -m cryptoadvance.specter server
```
You can also run it as a daemon, using tor, provide ssl certificates to run over https. Https is especially important because browsers don't allow the website to access camera without secure connection, and we need camera access to scan QR codes.
An example how to run specter server in the background (`--daemon`) with ssl certificates (`--key`, `--cert`) over tor:
```sh
python -m cryptoadvance.specter server --tor=mytorpassword --cert=./cert.pem --key=./key.pem --daemon
```
If your Bitcoin Core is using a default data folder the app should detect it automatically. If not, consider setting `rpcuser` and `rpcpassword` in the `bitcoin.conf` file and in the app settings.
Have a look at [DEVELOPMENT.md](https://github.com/cryptoadvance/specter-desktop/blob/master/DEVELOPMENT.md) for further information about hacking on specter-desktop.
## Detailed instructions
- Beyond local network - how to forward your node through a cheap VPS: [docs/reverse-proxy.md](docs/reverse-proxy.md)
- Setting up Specter over Tor: [docs/tor.md](docs/tor.md)
- Using self-signed certificates in local network or Tor: [docs/self-signed-certificates.md](docs/self-signed-certificates.md)
## A few screenshots
### Adding a new device
@ -69,7 +83,3 @@ Have a look at [DEVELOPMENT.md](https://github.com/cryptoadvance/specter-desktop
### Configuration
![](screenshots/bitcoin-rpc.jpg)
## Make Specter Desktop available externally over Tor
see: [docs/tor.md](docs/tor.md)