Michael Bumann
b38357091d
Add DB view for easier balance calculation and extend model associations
2022-01-19 10:57:50 +01:00
Viktor Patchev
d56df155e9
Merge pull request #44 from getAlby/feature/default-certificates
...
lnd: use system certs if none configured
2022-01-18 13:58:30 +01:00
kiwiidb
4945bfcc78
lnd: use system certs if none configured
2022-01-18 13:33:24 +01:00
Michael Bumann
cc57e9b2e3
Merge pull request #43 from getAlby/change-module-path
...
Update package name to new repo
2022-01-18 12:06:34 +02:00
Viktor Patchev
919affa2db
Update package name to new repo
2022-01-18 10:42:53 +01:00
Michael Bumann
9e6172c668
Merge pull request #42 from getAlby/grpc-setup
...
Setup lnd grpc client
2022-01-17 23:53:58 +02:00
Michael Bumann
b191d19707
Trying to use lnrpc in a controller
2022-01-17 22:52:10 +01:00
Michael Bumann
7c007791ec
Setup LND connection
2022-01-17 22:37:40 +01:00
Michael Bumann
aabbfc33b5
Merge master and use correct lnd version
2022-01-17 18:45:47 +01:00
Viktor Patchev
5cf32d83b0
lnd options from env
2022-01-17 14:56:14 +01:00
Viktor Patchev
23dd07374f
go modules update
2022-01-17 13:54:06 +01:00
Viktor Patchev
2b1de4ba92
fix
2022-01-17 13:53:16 +01:00
Michael Bumann
00e43dc5a3
Ignore log files
2022-01-17 13:18:14 +01:00
Viktor Patchev
fe46f423df
remove logs
2022-01-17 12:56:42 +01:00
Viktor Patchev
2bf39e0f97
Setup lnd grpc client
2022-01-17 12:53:47 +01:00
Michael Bumann
855cb236ba
Cleanup
2022-01-17 11:51:47 +01:00
Michael Bumann
0976fd70ca
Merge pull request #41 from getAlby/configurable-jwt-expiry
...
Configurable jwt expiry
2022-01-17 12:42:00 +02:00
Michael Bumann
d7f57a9dd7
Panic if configs are missing
2022-01-17 11:25:54 +01:00
Michael Bumann
316cc77324
Add configs to env example file
2022-01-17 11:12:50 +01:00
Michael Bumann
6478c6e0db
Make JWT expiry configurable and require to set a JWT secret
2022-01-17 11:11:28 +01:00
Michael Bumann
bbd9a66302
Merge pull request #40 from getAlby/logging
...
Logging
2022-01-17 12:09:54 +02:00
Michael Bumann
1150ad6154
Merge remote-tracking branch 'getalby/main' into logging
...
* getalby/main:
Minor fixes
2022-01-17 10:43:18 +01:00
Michael Bumann
854f7a8d9e
Merge pull request #39 from getAlby/minor-fixes
...
Minor fixes
2022-01-17 11:42:49 +02:00
Michael Bumann
f3a05ac268
Update log format
...
if no extension is given we add the date.
if an extension is given we use that path (assuming that's the exact file the user wants)
2022-01-17 10:39:14 +01:00
Michael Bumann
866be7bd91
Hide echo banner
2022-01-17 10:26:29 +01:00
Michael Bumann
4cec10a999
Cleanup filename
2022-01-17 10:24:42 +01:00
Michael Bumann
236427b8e2
Use Echo logger
2022-01-17 10:22:02 +01:00
Michael Bumann
2e387132d1
Example
2022-01-17 10:19:53 +01:00
Michael Bumann
dd01815327
Limit for user find
2022-01-17 10:19:41 +01:00
Michael Bumann
7f8f8a9028
Add Bun debugger
2022-01-17 10:19:27 +01:00
Michael Bumann
698323a8d9
Echo logging
2022-01-17 10:19:17 +01:00
Viktor Patchev
a34fece550
Minor fixes
2022-01-17 09:50:37 +01:00
Michael Bumann
466a51cd01
Merge pull request #30 from getAlby/jwt-expiry
...
Remove sensitive data from JWT and add expiry
2022-01-17 09:14:12 +02:00
Michael Bumann
06410ec1de
Use custom JWT claims and fix expiry
2022-01-17 07:48:46 +01:00
Roman Useinov
c5170a0a1e
fix expiry and validate claims
2022-01-16 16:02:37 +00:00
Roman Useinov
e22c51f9f9
use DefaultConfig as base for JWT
2022-01-16 14:14:53 +00:00
Roman Useinov
e7e5904829
UserMiddleware added
2022-01-16 14:02:58 +00:00
Roman Useinov
6c6e647cb6
fix naming after rebase
2022-01-16 13:27:16 +00:00
Michael Bumann
1b347c5177
Move JWT middleware config to tokens and load UserId into the context
2022-01-16 13:26:42 +00:00
Michael Bumann
b1dd3012fd
Remove sensitive data from JWT and add expiry
2022-01-16 13:26:42 +00:00
Michael Bumann
95512462f6
Cleanup typos ( #28 )
...
* Typo
* Typoc
2022-01-16 14:13:45 +01:00
Michael Bumann
2c19244cad
Fix auth controller update ( #31 )
...
* Fix auth controller update
We should update the user here
* Remove database update on auth call as we simply rely on JWT
2022-01-16 14:11:49 +01:00
Michael Bumann
8bc060697f
Only warn if the .env file can not be loaded ( #29 )
...
.env files should be optional in a production environment it is likely that the env variables are set explicitely and not through a file
2022-01-16 14:10:27 +01:00
Roman Useinov
628071160c
Cleanup ( #25 )
...
* remove cmd folder as we are going to have only one entrypoint
* get rid of pkg directory
* rename test -> integration_tests as unit tests should reside next to the actual files they are testing
* database migration WIP
* reinstate gorm boilerplate in the addinvoice for now to make it compile
* introduce migrations
* add Makefile
* don't use unsigned types for database mappings
* migrations work now
* add build target
* use echo groups
* gorm removed
* add envconfig
* fix comments
2022-01-16 00:49:19 +01:00
Viktor Patchev
17e528b461
Add logging to file option ( #20 )
...
* Add logging to file option
* Remove log and add correct env variable
* fail if no log file can be created
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
2022-01-14 21:54:53 +01:00
Roman Useinov
3c54f94250
Merge pull request #21 from getAlby/add-exception-tracking-option
...
Sentry initialization
2022-01-14 20:47:39 +00:00
Roman Useinov
2b0c36ef3f
make sentry optional and panic on error
2022-01-14 20:47:19 +00:00
Roman Useinov
7af5b2c54b
sort imports
2022-01-14 20:42:32 +00:00
Viktor Patchev
0ccc4ed47d
Sentry initialization
2022-01-14 18:45:01 +01:00
Michael Bumann
c654669c7b
Merge pull request #16 from getAlby/gettxs-endpoint
...
Get TXS endpoint
2022-01-14 03:18:08 +02:00