29 Commits (07bd7fc1d1737639738bbed518c105c2e0222ea6)

Author SHA1 Message Date
Pancakes 00e783ff8a
Styling fixes 3 weeks ago
Frederico Santos ac360ccb1c
Cold storage (#57)
* feat: Implement S3 integration for system save data migration and retrieval

* feat: Refactor system save data handling to use JSON and improve error logging

* feat: Update S3 migration schedule to hourly and limit old account retrieval to 3000 records

* fix: Clean up S3 migration code by removing unnecessary blank lines and improving logging messages
4 weeks ago
Frederico Santos fa57f5997f
Added support for Discord OAuth2 (#25)
* Need a login check

* chore: Add Discord OAuth2 authentication endpoint

chore: Update dependencies and clean up code

chore: Update dependencies, add Discord OAuth2 authentication endpoint, and clean up code

chore: Update dependencies, add Google OAuth2 authentication endpoint, and clean up code

Code clean up

uniqueness on external account id

chore: Add Discord and Google OAuth2 authentication endpoints, and update dependencies

code review fixes

* chore: Update prodHandler to use clienturl flag for Access-Control-Allow-Origin

* chore: Refactor FetchDiscordIdByUsername and FetchGoogleIdByUsername to handle null values

* chore: Set secure and same-site attributes for session cookie

* chore: Set session cookie expiration to 3 months

* Update callback URL for Oauth2 client in docker-compose and rogueserver.go

* Update callback URL for Oauth2 client in docker-compose and rogueserver.go

---------

Co-authored-by: Matthew Olker <matthew.olker@gmail.com>
4 months ago
Pancakes dd00d90211
Remove voucher compensation code 5 months ago
maru 3489ae91bf
Change max connections code again 6 months ago
maru 4cc2d3431c
Set conns value to 128 6 months ago
maru 1441d47694
Remove legacy save migration code 6 months ago
Up a063b1740c
add missing foreign key declarations 6 months ago
Up 834d1e62a0
add foreign key constraint on client session table 6 months ago
Up c0aade2e65
simplify ID handling 6 months ago
Up 436fce8759
add client session ID tokens 6 months ago
Up 5d6bfe0c22
add accounts activity index 6 months ago
Krystian Chmura 03865f9b94
run golangci-lint in CI 6 months ago
maru 36f353b8a6
Clean up db.go 6 months ago
maru 5656fb96d1
Use log.Fatal isntead of panic 6 months ago
maru 693663103b
Run formatter on files 6 months ago
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
6 months ago
maru e4de7c2391
Update database limiting code more 6 months ago
maru de0bd74dc2
Update database limits 6 months ago
maru 59ea469fb6
Don't import legacy saves if system exists in database 6 months ago
maru 4971ad9d42
Add new database limits 6 months ago
Up 0d6539a87b
continue on existing save (#3)
* long blob

* fix continue

* one slot only?

* fallback if there is no slot data yet

* Revert "one slot only?"

This reverts commit 20997e9cd8.
6 months ago
Up 1f95f7c042
hotfix: move save data to DB (#2)
* start reading save data from DB

* finish migration code

* remove leftover dir creation

* fix import cycle

* remove more dir creation

* update gitignore

* fix pk

* better table creation

* use REPLACE INTO

* fix typo
6 months ago
maru 8481626193
Relicense under AGPL 7 months ago
maru 235fb9c91c
Add copyright notice to files 7 months ago
maru 54d4d9a389
Set max open MariaDB connections 7 months ago
maru 8d3d24a58a
Add mysql driver 11 months ago
maru 4600b7b024
More changes 11 months ago
maru f690c53607
Add changes so far 12 months ago