Commit graph

109 commits

Author SHA1 Message Date
Jonathan Zernik
9b14c8016b
Package for umbrel (#528)
* Switch dockerfile base image to buster

* Try to make build work for umbrel

* Remove libs from Dockerfile

* Add build-essential to dockerfile

* Make sqk_dir configurable with environment variable

* Use new env var names
2020-12-30 16:46:48 -08:00
Jonathan Zernik
5d436acbdb
Add the missing postgres ubuntu package in dockerfile (#524) 2020-12-28 14:52:13 -08:00
Jonathan Zernik
e966f73db1
Update db to use Timestamp for times (#519) 2020-12-27 23:32:02 -08:00
Jonathan Zernik
5b22b25ad0
Run squeaknode directly on host without docker (#518) 2020-12-27 20:55:52 -08:00
Jonathan Zernik
34ec5deee8
Use python slim docker base image (#516)
* Use python slim image for both squeaknode and test

* Clean up dockerfiles

* Reorder dockerfile for squeaknode

* Load alembic config file from packaged module

* Alembic directory is now loaded from packaged module

* Got multi-stage docker build working

* Removed old app directory from docker config

* Remove commented package data arg from setup.py

* Remove unused alembic graft from manifest

* Fix extra space in alembic revision
2020-12-27 04:59:59 -08:00
Jonathan Zernik
a7564b3326
Fix all codecheck errors in source code (#512) 2020-12-26 04:16:11 -08:00
Jonathan Zernik
00fc72514f
Use squeaklib with ptlc (#502)
* Rename secret_key

* More work to convert to using PTLC

* Updated most code for PTLC

* More work to use ptlc with secret key

* Got itest passing

* Remove unused import

* Use version 0.5.0 of squeaklib

* Added simple unit test for squeak controller

* Use modular addition subtraction for secret key nonce tweak

* Move util to core folder

* Store secret key as hex in database

* Store nonce as hex in db
2020-12-25 20:17:54 -08:00
Jonathan Zernik
fad797fa45
Fix wait for block index in lnd (#487)
* Fix bug where trying to kill same process twice.

* Increase time to check for running lnd
2020-11-24 01:49:19 -05:00
Jonathan Zernik
c62d4229cf
Remove btcd cert shared volume (#486)
* Remove shared volume for btcd cert file

* Got ssl cert working as a config

* Remove old comment about adding ssl certificate in dockerfile
2020-11-24 01:18:53 -05:00
Jonathan Zernik
c1e1f7c224
Wait for lnd to succeed in connecting to bitcoin before starting (#485) 2020-11-23 23:06:34 -05:00
Jonathan Zernik
dbd3598eb9
Reduce lnd sleep time to 30 s (#484) 2020-11-23 21:04:11 -05:00
Jonathan Zernik
64643b25a8
Use docker compose overrides for testnet mainnet (#482)
* Use default override file for docker-compose testnet

* Add mainnet docker-compose override file

* Put common environment variables in main docker-compose file

* Update readme with instructions for mainnet override
2020-11-23 20:43:19 -05:00
Jonathan Zernik
a43576a10e
Use bitcoincore for bitcoin node (#481)
* Got docker-compose working with bitcoin-core

* Got itest working

* Add bitcoin use_ssl config

* Rename service to bitcoin-core in docker-compose
2020-11-23 14:43:17 -05:00
Jonathan Zernik
cbd7a8b2a7
Use testnet by default (#477) 2020-11-22 22:55:58 -05:00
Jonathan Zernik
7195174a8b
Rename common module to lightning (#439) 2020-11-10 18:50:33 -05:00
Jonathan Zernik
6641e64995
Use msat as price unit (#427)
* Use price_msat for config and internally

* Use price_msat in admin protocol for offer message

* Use price_msat in sent payments table and protocol

* Update frontend to use new protocol with price_msat for offer

* Update static build
2020-11-10 02:35:24 -05:00
Jonathan Zernik
53fa118f20
Remove max squeaks config from docker config.ini (#426) 2020-11-09 23:12:22 -05:00
Jonathan Zernik
05e03a5979
Fix sync interval s config (#425) 2020-11-09 22:56:08 -05:00
Jonathan Zernik
2a0e861fb2
Add sync_interval_s config (#424) 2020-11-09 22:39:06 -05:00
Jonathan Zernik
1a80c39c9b
Remove unnecessary clone of googleapis for proto gneration (#403) 2020-11-06 23:26:31 -05:00
Jonathan Zernik
c3a5740bbb
Remove old unused comments from dockerfile (#399) 2020-11-06 13:14:10 -05:00
Jonathan Zernik
dbc99925cc
Make log level configurable (#394) 2020-11-05 18:37:32 -05:00
Jonathan Zernik
8c4db6f85a
Rename squeaknode docker container (#377) 2020-11-04 23:35:32 -05:00
Jonathan Zernik
724f72f1e5
Use more config defaults (#376)
* Use default configs for webadmin

* Remove sqlite config from config file

* Use default config for sqk dir

* Use derived default lnd tls cert path in config

* Use default config for macaroon path

* Remove macaroon path config from docker config.ini

* Got mainnet working in docker

* Update readme

* Remove unused network param in docker config.ini file

* Update readme
2020-11-04 23:18:04 -05:00
Jonathan Zernik
225cd7fdf1
Use better config defaults (#375)
* Use default ports for bitcoin rpc

* Use default configs for lnd ports

* Use default configs for server host/port and admin host/port
2020-11-04 21:24:04 -05:00
Jonathan Zernik
7f8b71841f
Use env var to set use_ssl, login_disabled and allow_cors configs (#355) 2020-11-01 13:25:12 -05:00
Jonathan Zernik
927299cef0
Allow frontend testing without login (#345)
* Frontend testing working in dev mode

* Make login_disabled and cors configs configurables

* Update frontend readme
2020-10-29 18:22:01 -04:00
Jonathan Zernik
99ddc2df77
Rename to squeaknode (#342)
* Rename squeakserver to squeaknode and get itest passing

* Fix itest dockerfile

* Rename more squeakserver to squeaknode

* Rename database from squeakserver to squeaknode

* Update readme

* Remove frontend/build from git

* Rename squeakserver to squeaknode in tox and main
2020-10-29 14:35:17 -04:00
Jonathan Zernik
400d7faf5c
Use host machine volumes for lnd and sqk (#337) 2020-10-29 01:39:15 -04:00
Jonathan Zernik
bac8d27072
Fix external lnd host env (#332)
* Fix lnd external host env

* Open port 9735 on lnd host in docker
2020-10-28 15:58:19 -04:00
Jonathan Zernik
0be9ade5ad
Include static react assets in setup install (#330)
* Include react build assets in static folder in setup install

* Remove comments from flask app startup
2020-10-28 15:00:21 -04:00
Jonathan Zernik
cf4699d6f8
Remove unused proto dir copy in dockerfile (#329) 2020-10-28 14:48:49 -04:00
Jonathan Zernik
287d0f34ca
Simplify sqkserver docker (#327)
* Simplify sqkserver docker by copying entire repository to image

* Got flask templates working without custom root path

* Remove unused comment in setup.py
2020-10-27 01:04:48 -04:00
Jonathan Zernik
5c4bfbc076
Remove frontend docker (#326) 2020-10-26 22:13:43 -04:00
Jonathan Zernik
478fdc944d
Build frontend outside docker (#325)
* Build frontend outside docker and commit in git

* Update sqkserver dockerfile to use build folder from host

* Add makebuild script to frontend folder
2020-10-26 21:59:40 -04:00
Jonathan Zernik
5292a15884
Remove other node from docker-compose (#323) 2020-10-25 15:35:17 -04:00
Jonathan Zernik
79d7a45e32
Use authentication for web app (#321)
* Require authentication for web app index page

* Got template working for login page

* Got fake login working

* Add logout endpoint

* Remove old comment

* Got login working

* Remove log lines
2020-10-24 23:13:16 -04:00
Jonathan Zernik
537bb8439b
Use ssl for flask server (#319)
* Use ssl for flask server

* Use window location protocol to get https or http in frontend

* Make use_ssl configurable

* Remove log port in frontend
2020-10-24 18:04:56 -04:00
Jonathan Zernik
9ed4d79c78
Use host volume for btcd data (#318) 2020-10-24 14:12:32 -04:00
Jonathan Zernik
ce31be284d
Build frontend code in sqkserver dockerfile (#317) 2020-10-24 11:31:10 -04:00
Jonathan Zernik
f321785d60
Change default web server port (#316) 2020-10-23 22:22:34 -04:00
Jonathan Zernik
ee27bcb6ee
Add config to enable admin web server (#315) 2020-10-23 21:31:06 -04:00
Jonathan Zernik
6f8e556bcf
Make web server port configurable (#314)
* Make host and port for web server configurable

* Add webadmin host and port to config file

* Use current host and port in web frontend

* Remove envoy and frontend from docker compose

* Remove envoy

* Remove unused postgres docker volume
2020-10-23 21:16:50 -04:00
Jonathan Zernik
d3d7e6e604
Add admin web server (#310)
* Add basic flask web server

* Use ubuntu as docker base image for frontend docker build

* Got web frontend server running inside sqkserver

* Got client request throught flask working

* Refactor makerequest function in frontend

* Support sending request to flask server

* Use request and reply in flask for set profile sharing method

* Handle request object in flask for get followed squeaks route

* Use flask endpoint for lnd getinfo

* Use flask endpoint for walletbalance

* Use flask for gettransactions endpoint

* Use flask endpoint for lnd methods

* Add set profile properties methods to flask

* Move request, response protobuf to handler class

* Move request, reply inside handler for get signing profiles

* Move request, reply to handler for get contact profiles

* Move request, reply to handler for get squeak profile

* Move request reply for get profile by address to handler

* Move request reply to handler for set profile attributes

* Move request reply to handler for delete profile

* Move request reply for make squeak to handler

* Move request reply to handler for get squeak display

* Move request reply to get address squeak displays

* Move request reply to handler for ancestor squeaks

* Move request reply to handler for delete squeak

* Move request reply to handler for create peer and get peer

* Move request reply to handler for peer set attributes

* Move request reply to handler for more methods

* Move request reply to handler for another method

* Move request reply to handler for more methods

* Move more request reply to handler

* Move request reply to handler for all methods

* Remove message conversion helper methods from servicer class

* Remove duplicate protobuf conversion functions

* Fix flask handling of requests

* Remove old protobuf conversion methods in comments

* Use helper method to simplify web server routes functions
2020-10-22 22:52:40 -04:00
Jonathan Zernik
4d5482af3b
Wait for lnd tls cert to exist in docker volume before start sqkserver (#288) 2020-10-13 12:22:34 -07:00
Jonathan Zernik
92a77ce7bb
Add subscribe channel events rpc (#283)
* Add subscribe channel events rpc

* Upgrade lnd to 0.11.1 (#284)

* Got test working for open and close channel with subscriptions
2020-10-11 07:01:35 -07:00
Jonathan Zernik
f6f03b2a0f
Upgrade lnd to 0.11.1 (#284) 2020-10-11 05:33:29 -07:00
Jonathan Zernik
8b9f87990d
Show peer connection in lightning node (#280)
* Show peer connection status for lightning node

* Add connect peer button to lightning node page

* Add test for connect peer

* Add working test for list peers and connect peer

* Add test for disconnect peer

* Fix sqk dir config

* Fix sqk_dir config

* Successfully connect to sqkserver_other in docker-compose

* Remove unused dialog from lightning node page
2020-10-09 05:55:32 -07:00
Jonathan Zernik
377eaa62d5
Add receive bitcoin button (#262)
* Add receive bitcoin button

* Add new address rpc method

* Successfully show new address in dialog in wallet

* Make address field in new address dialog read only
2020-09-28 02:02:42 -07:00
Jonathan Zernik
9aef37bd71
Update docker compose yaml (#259)
* Use sqlite for squeak node in docker compose

* Include other sqkserver in docker docker-compose

* Use second instance of squeak node in docker compose

* Remove old log line
2020-09-27 14:54:34 -07:00