Commit Graph

31 Commits

Author SHA1 Message Date
David Markowitz
a60865cd19
feat: allow SQLite database backend (#1663)
* simplify leaderboard code, fully abstract database

* update exception catching

* update exception catching and sql references, remove ugc from gamemessages

fix deleting model

remove unrelated changes

Update GameMessages.cpp

* remove ugc from gamemessages

* Update GameMessages.cpp

* Update Leaderboard.cpp

* bug fixes

* fix racing leaderboard

* remove extra stuff

* update

* add sqlite

* use a default for optimizations

* update sqlite

* Fix limits on update and delete

* fix bugs

* use definition to switch between databases

* add switch for different backends

* fix include guard and includes

* always build both

* add mysql if block

* Update Database.cpp

* add new options and add check to prevent overriding mysql

* correct config names

* Update README.md

* Update README.md

* merge to 1 sql file for sqlite database

* move to sqlite folder

* add back mysql migrations

* Update README.md

* add migration to correct the folder name or mysql

* yes aron

* updates

* Update CMakeLists.txt

* dont use paths at all, add where check to only update if folder name still exist

check also doesnt check for slashes and assumes one will be there since it will be.

* default dont auto create account

for releases we can change this flag

* default 0

* add times played query

* fix leaderboard not incrementing on a not better score

* add env vars with defaults for docker

* use an "enum"

* default to mariadb

* Update .env.example
2024-12-17 16:07:07 -08:00
Daniel Seiler
35c463656d
Use volume for mariadb persistence (#1555)
I initially used the bind mount because it's arguably easier to back up and move around than a volume, but turns out with https://github.com/DarkflameUniverse/NexusDashboard/issues/92 it's nothing we can recommend for Docker Desktop on WSL, which unfortunately is the primary setup newcomers will try this with. So changing the default to be a volume should address that (presumably by hosting the volume within the WSL Docker VM, as opposed to the host NTFS filesystem)
2024-04-29 22:51:13 +02:00
Daniel Seiler
fbdcc17bb5
fix: Docker Compose README (#1403)
* fix: Docker Compose README

* fix: add password requiremnts hint

* fix: note on sudo / docker compose

* fix: add note on UGCUSE3DSERVICES

* fix: reorder

* fix: duplicate word

* fix: move broken line

* fix(compose): enable USER_ENABLE_REGISTER by default
2024-01-08 09:13:28 -06:00
David Markowitz
09fb1dfff9
Update docker-compose.yml (#1383) 2024-01-03 06:00:49 -06:00
Aaron Kimbrell
9116317834
fix: improve our docker config (#1373)
* greatly simplify docker

* back to gcc since I can't the libs to load properly

* fix typo
add set -e to entrypoint
better copy of entrypoint.sh and use proper entrypoint

* use debian instead of gcc for runtime
comment and organize it a bit
drop gcc to 12 since we are using debian 12 as well

* explicitly include mariadb libs

* Make the server not crash in the case we are using only env-vars
make the dockerfile have configs in the expected location incase of bypassing entrypoint.sh

* remove unneede var from example, since it's in the container now

* coments to dockerfile

* Revert master server changes

* Resolve conflicting port options between chat, master, and world
move chat_server_port to shared since it's used by world and chat

* Don't error if file does not exists when updating a config option
move update before and use bin dir var
2024-01-03 02:36:17 -06:00
David Markowitz
e5b69745aa
feat: Remove NET_VERSION define (#1153)
* Remove NET_VERSION define

I get to test this on 4 different platforms.  yay...

* move stuff around

finally fixed you docker

i love this

Update Dockerfile

Update Dockerfile

change type

Update AuthPackets.cpp

Update AuthServer.cpp

* Update CMakeVariables.txt

* Update sharedconfig.ini
2023-08-03 21:38:33 -05:00
Marcono1234
4f1df372a2 Make some Docker Compose volumes read-only 2022-01-24 21:52:11 +01:00
Nils Bergmann
9c10a7adef
More meaningful error messages
Suggested by @Marcono1234
2021-12-31 14:04:51 +01:00
Nils Bergmann
619eec8335
Merge branch 'pr-improvements' into pr-improvements 2021-12-09 17:43:52 +01:00
Jack Kawell
18d797150e PR comments 2021-12-09 00:10:29 -07:00
Nils Bergmann
7f1e392be2
WIP: add master_ip option 2021-12-08 14:57:16 +01:00
Nils Bergmann
51a9f61e88
WIP: make this work independent of the repo directory 2021-12-08 14:39:19 +01:00
Jack Kawell
293aaff2a5 A few more improvements 2021-12-08 01:54:44 -07:00
Jack Kawell
f185c8b5db Moved all the setup of client files into a single use Docker image 2021-12-08 00:50:15 -07:00
Jack Kawell
a38765d02d fixing my mistakes (aka TheNoim is smarter than me) 2021-12-07 23:44:37 -07:00
Jack Kawell
59f053433c External IP configuration as well as other small improvements 2021-12-07 23:33:34 -07:00
Nils Bergmann
0dfc962df5
WIP: connection issue 2021-12-08 02:40:27 +01:00
Nils Bergmann
cf6f69ba93
WIP: try to fix navmesh load 2021-12-08 00:40:15 +01:00
Nils Bergmann
78a04c90e6
WIP: fix migration volume and add ports 2021-12-07 23:17:26 +01:00
Jack Kawell
a6190fe29d Add init volume to database 2021-12-07 14:55:19 -07:00
Nils Bergmann
4cf2f4e7c7
WIP: error if the client path is missing 2021-12-07 22:43:53 +01:00
Nils Bergmann
53c9467bec
WIP: use fixed mariadb version 2021-12-07 22:30:08 +01:00
Nils Bergmann
157977e267
Merge pull request #1 from VBMCBoy/main
Add Brick-Building-Fix and AccountManager
2021-12-07 22:28:37 +01:00
Nils Bergmann
e714cacc58
WIP: produce valid MasterServer binary 2021-12-07 22:25:58 +01:00
Kay Kaprolat
ac20be8744 moved healthchecks from Dockerfiles to docker-compose.yml 2021-12-07 22:17:18 +01:00
Kay Kaprolat
7a55db3f21 moved AccountManager secret to environment 2021-12-07 22:08:53 +01:00
Kay Kaprolat
b46f833e23 added darkflame network to brickbuildfix 2021-12-07 21:34:06 +01:00
Kay Kaprolat
e01a7be08e added AccountManager 2021-12-07 21:30:08 +01:00
Kay Kaprolat
b35a367ed1 added brick-building fix 2021-12-07 21:25:15 +01:00
Nils Bergmann
50221fbd65
WIP: do more post build steps 2021-12-07 16:29:26 +01:00
Nils Bergmann
0add6853bf
WIP: completely automated docker setup 2021-12-07 14:50:05 +01:00