88 Commits

Author SHA1 Message Date
2cf02cfb78 Avoid unnecesary DB queries 2025-07-13 12:30:28 +02:00
a0b652d9e9 Better comments 2025-07-13 12:08:46 +02:00
a60311f55a Keep nostr updated 2025-07-13 12:04:49 +02:00
339495078d Enforce nostr pubkey in header 2025-07-12 11:24:10 +02:00
6f728a4437 ensure nostr pubkey is present in auth when creating robot 2025-06-02 18:14:29 +02:00
f9028c287a remove os import 2025-05-20 16:43:20 +02:00
e81c1fb3d4 read LOG_TO_CONSOLE with decouple 2025-05-20 16:43:20 +02:00
e71b307a38 allow logging to file and setting LOGGER_LEVEL 2025-05-20 16:43:20 +02:00
c8a95b087b read REDIS_URL with decouple 2025-05-17 17:43:09 +02:00
18b3b25e63 Revert "fix REDIS_URL config instead of environment variable" 2025-05-11 14:47:06 +00:00
1e2a742de2 Merge pull request #1912 from jerryfletcher21/development-option-cast
cast DEVELOPMENT config to bool
2025-05-10 22:39:54 +00:00
e24addbc34 fix REDIS_URL config instead of environment variable 2025-05-09 22:19:39 +02:00
6f8d351d93 cast DEVELOPMENT config to bool 2025-05-09 22:03:21 +02:00
e78d86feba nostr pubkey for Robot 2025-04-27 18:43:51 +02:00
f80f1dfb0c Add cancel_status to POST /api/order 2025-03-19 22:35:41 -03:00
de5d04a9ab Change urls to robosats.org 2025-02-12 19:45:24 +01:00
b3622420f4 Fix middleware unused AuthenticationFailed (#1339)
Simply remove an unused import that is failing linters.
2024-06-17 21:15:25 +00:00
7558ef415c Merge branch 'main' into perf/delete-backend-avatars 2024-06-16 22:53:51 +00:00
c3d1cd2472 Return json output instead of html when wrong token in Header Authorization (#1247)
fix #1246

Return a JsonResponse instead of raising AuthenticationFailed
Exception that is turned into the general html error by django.

rest_framework.response.Response should not be used in middleware,
will return django.template.response.ContentNotRenderedError.
2024-04-29 23:08:46 +00:00
c50b5c4f3b perf(coordinator): remove avatar generator 2024-04-22 02:40:15 +01:00
293c0b604d Refactor contexts and models (#921)
* Add SVG icons for map pins

* Add federation basis and new coordinator form (#793)

* Add new coordinator entry issue form

* Add Federation basis

* Fix eslint errors from F2F and fix languages

* Redo eslint @typescript-eslint/strict-boolean-expressions

* Robot Page working

* Contexts Working

* Garage Working

* CurrentOrder working

* Federation model working

---------

Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
2023-12-02 10:40:59 +00:00
5eb9ae7c4d Fix add hash_ids on robots created before hash_id implementation 2023-12-01 13:47:50 +00:00
92b041cb31 Add maker_hash_id to book response 2023-11-28 11:13:40 +00:00
ebd0a287c3 Add dev dependencies and regtest test environments 2023-11-14 13:54:51 +00:00
b4fe30e733 Add testing against API specs with assertResponse 2023-11-14 13:54:51 +00:00
a555f204ca Fix models decoupling (#874)
* Fix move order model constrains to env to settings.py

* Remove lnpayment, tick, onchain model contraints based on .env
2023-10-10 12:48:05 +00:00
2046857ee4 Fix last_login is None on update last login 2023-09-11 23:23:41 -07:00
b3598f5e9c Perf reduce DB writes on last_login updates 2023-09-11 08:52:50 -07:00
e0bd9fa59a Bump CLN docker to v23.08 and other fixes 2023-09-06 08:31:50 -07:00
5e4c00c84a Allow auth header to carry pgp keys (#805) 2023-08-21 16:56:24 +00:00
ca3f7cb222 Delete user view, session auth and png avatars (#588) 2023-08-14 14:21:12 +00:00
0a620901a7 Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
7b6ebd0eab Simplify coordinator updates, automatic migrations and collect statics (#583) 2023-05-15 09:46:59 +00:00
af0289c264 Fix new WS middleware for old auth method, improve auth token admin panel 2023-05-07 14:51:17 -07:00
8ae18f8b2a Small fixes, increase WS reconnection delay 2023-05-07 10:11:52 -07:00
8434a256cf Fix last_login for tokeauth, replace maker/taker_last seen for last_login 2023-05-07 08:06:35 -07:00
8f9690b681 Add network into coordinator panel header 2023-05-05 07:59:17 -07:00
e6ddcf9e4b Add RobotTokenSHA256 middleware, /api/robot and frontend entropy calc (#512)
* Add RobotTokenSHA256 middleware for in-the-fly robot generation/login

* Add RobotView, fix middleware, upgrade frontend

* Token header as base91

* Add OAS schema of RobotView

* Use RobotView on new fetchRobot(), mimick old fetchRobot() functionality

* Upgrade websockets for token based authentication

* Small fixes

* Add frontend token entropy checks, add token on route /robot/<token>

* Rename admin panel

* Collect phrases
2023-05-05 10:12:38 +00:00
dacb9e9fa6 Disable CSRF checks 2023-05-01 12:12:01 -07:00
a1f0a85646 Small fixes 2023-05-01 10:35:55 -07:00
f6f6a9244c Bump Channels and Daphne to 4.0 2023-05-01 09:19:15 -07:00
d88b391d42 Allow all cors origins (#407) 2023-04-02 20:55:42 +00:00
7643e524f1 Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
4d5c60239f Conform to pep8 rules (#295)
* Conform to pep8 rules

* Fix some more flake8 linting errors
2022-10-20 20:53:51 +00:00
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
9a6d3d33a4 Add OpenAPI v3.0 Docs for API (#243)
* Add initial api docs using drf-spectacular

This commit adds the inital and basic docs using drf-spectacular.
It also adds some serializers to be used for automatically
generating response objects by drf-spectacular

* Update api docs with correct request and response objects

- TODO: /order route

* Fix typo in api docs

* Separate OpenAPI schemas into it's own file

* Update drf-spectacular and add API intro and logo

* Update API docs for GET /order

* Add api docs for POST /order route

* Update serializers.py
2022-10-02 18:02:35 +00:00
588691c4c8 Add new payment methods and rename posgres_db envvar 2022-08-09 02:44:29 -07:00
6f1e865a15 Enable warnings logging to console via envvar 2022-08-01 05:55:43 -07:00
65f781af43 functional, but chat does not send messages (it does receive) 2022-06-26 15:43:57 -07:00
e525b84c9e Fix payments cleansing 2022-06-21 06:32:35 -07:00