Commit Graph

227 Commits (509ca8df1275f786e69b1107e41c1d43cd5c875f)

Author SHA1 Message Date
Up 509ca8df12
better errors 2024-05-15 07:28:49 +02:00
Up f31f130c14
also check for empty 2024-05-15 06:47:06 +02:00
Up c17c583321
update active session if none is found 2024-05-15 06:46:08 +02:00
Up 76e7ba02ad
always delete claimed vouchers 2024-05-15 04:27:53 +02:00
Up a063b1740c
add missing foreign key declarations 2024-05-15 04:12:20 +02:00
Up e4713e6ea3
fall back to legacy save ID 2024-05-15 04:08:42 +02:00
Up 2aab022ce3
properly use client session ID 2024-05-15 04:07:47 +02:00
Up e7cff35d69
delete vouchers when claiming them 2024-05-15 00:50:50 +02:00
Up 174b962f19
update verify endpoint 2024-05-15 00:00:38 +02:00
Up e2efcd550c
fix faulty sql query 2024-05-14 23:17:14 +02:00
Up 834d1e62a0
add foreign key constraint on client session table 2024-05-14 14:33:53 +02:00
Up c0aade2e65
simplify ID handling 2024-05-14 14:30:04 +02:00
Up 983e17c894
continue if linting fails 2024-05-14 13:23:22 +02:00
Up b88b3f6fab
explicitly define linter config 2024-05-14 13:18:39 +02:00
Up c24d006f88
move linter args to config file 2024-05-14 13:07:07 +02:00
Up 12b0a0df0b
try make linter ignore unused stuff 2024-05-14 13:01:29 +02:00
Up 436fce8759
add client session ID tokens 2024-05-14 12:54:06 +02:00
Up 8439519d8e
start on splitting api call handler function 2024-05-12 20:42:07 +02:00
Up d70c082aa9
simplify json response writing 2024-05-12 20:05:46 +02:00
Up f0c283af42
merge token and uuid lookups to reduce roundtrips 2024-05-12 19:44:04 +02:00
Up 81853b1863
forgot to update stats column 2024-05-12 08:38:57 +02:00
Up a44a6c382f
save data when applying vouchers 2024-05-12 08:30:46 +02:00
Up c06b1496a3
add watchtower in example compose file 2024-05-12 08:11:36 +02:00
Up 4430a18dae
update example compose file 2024-05-12 08:05:40 +02:00
Up 5d6bfe0c22
add accounts activity index 2024-05-12 05:12:46 +02:00
Up 2700afafdb
cleanup 2024-05-12 04:41:56 +02:00
Up 94df201bf7
update endpoint name 2024-05-12 03:42:35 +02:00
Up 884bb88cd3
add combined update endpoint 2024-05-12 03:34:08 +02:00
Up ab69d940e6
update action step name 2024-05-12 01:23:29 +02:00
Up 43f2f5a163
Merge pull request #11 from slsyy/run-golangci-lint-in-CI 2024-05-12 00:28:46 +02:00
Krystian Chmura 03865f9b94
run golangci-lint in CI 2024-05-11 14:41:25 +02:00
maru 36f353b8a6
Clean up db.go 2024-05-11 02:30:20 -04:00
maru 5656fb96d1
Use log.Fatal isntead of panic 2024-05-11 02:24:20 -04:00
Up dd013a1626
Merge pull request #8 from cgnetsec/master 2024-05-11 05:44:57 +02:00
ser3n1ty 8c209163db
Update README.md 2024-05-10 20:38:28 -07:00
ser3n1ty 1cec1d313d
Update README.md 2024-05-10 20:36:03 -07:00
Flashfyre 2704e64e38 Add newclear endpoint 2024-05-10 18:07:14 -04:00
maru e97e5f73d5
Update ghcr.yml 2024-05-10 16:00:47 -04:00
maru d4a906a0f1
Move HTTPS-related flags in rogueserver.go 2024-05-10 15:50:19 -04:00
maru 693663103b
Run formatter on files 2024-05-10 15:49:26 -04:00
Up a8502fcd3f
add GitHub actions workflows and build docker image (#9)
* add default values for CLI args

* add development docker compose file

* prevent crash if userdata dir does not exist

* accounts, acccountStats

* account stats and create db indices

* compensations and daily runs

* ensure uniqueness of daily seed

* start on port 8001 by default for client parity

* add GitHub actions scripts and dockerfile

* add os architecture

* only build docker image on main repo

* add example compose file
2024-05-10 15:47:22 -04:00
maru b5e8094039
Don't return INVALID on seed-related function error 2024-05-10 15:44:35 -04:00
maru eea2266920
Remove unneeded assertion check in handleSaveData 2024-05-10 15:40:22 -04:00
maru 17294e5179
Fix handleDailySeed 2024-05-10 15:37:24 -04:00
maru b91c169b16
endpoints.go consistency 2024-05-10 15:33:37 -04:00
Up 3ed5f41d58
make server automatically create DB schema if not exists (#5)
* add default values for CLI args

* add development docker compose file

* prevent crash if userdata dir does not exist

* accounts, acccountStats

* account stats and create db indices

* compensations and daily runs

* ensure uniqueness of daily seed

* start on port 8001 by default for client parity

* make generated schema match production

* sort imports
2024-05-10 15:30:47 -04:00
maru 8a32efeaa3
Clean up rogueserver.go 2024-05-10 13:40:00 -04:00
maru 633142eb29
Allow serving HTTPS 2024-05-10 13:16:35 -04:00
maru fadd10602a
Don't log ErrNoRows in savedata 2024-05-09 14:26:54 -04:00
maru e4de7c2391
Update database limiting code more 2024-05-09 14:22:20 -04:00