Commit Graph

166 Commits

Author SHA1 Message Date
Charles Le Maux
8147d5e01a [~] Simple type fix 2024-09-21 12:46:48 +02:00
Charles Le Maux
8d5993e84b [+] Revert api_cleanup 2024-09-20 16:18:48 +02:00
Charles Le Maux
9ad1bdaff9 [+] Added super-secure-token authentication
Now uses firebase complete tokens; it verifies the signature and integrity of the token, the origin of the project the token was issued for, the secret key, and finally the sub before verifying the account.
2024-09-20 15:54:41 +02:00
Charles Le Maux
18acd1e08d [~] Excluded modpacks from git upload 2024-09-20 11:41:16 +02:00
Charles Le Maux
874236d09e [~] Tiny coding style update 2024-09-20 11:38:54 +02:00
Charles Le Maux
29b42be411 [+] Added a longer scheduler.
Soon will be implemented a modpack update check.
2024-09-20 09:59:21 +02:00
Charles Le Maux
bf49e5c038 [+] Enabled command block globally 2024-09-20 09:59:00 +02:00
Charles Le Maux
bd1f5f51e0 [+] Enabled command block globally 2024-09-19 16:32:45 +02:00
Charles Le Maux
2e6e13a676 [+] Updated modpack launch command
Now the get_sdk_version won't be called on modded servers, preventing a non base 10 error (because the modpack's version name won't be represented as a minecraft version, but as the modpack name itself.
2024-09-19 12:24:56 +02:00
Charles Le Maux
362a079c69 [+] New API cleanup system 2024-09-18 11:04:35 +02:00
Charles Le Maux
21fb9f1286 [~] Coding style 2024-09-16 01:52:27 +02:00
Charles Le Maux
20047990b5 [+] Fixed server creation vulnerability
When a user wanted to create a server, it was created on firebase before the preliminary checks were made, reordering the function has fixed that.
2024-09-16 01:52:16 +02:00
Charles Le Maux
c057e33713 Merge branch 'master' into plugin-management-system 2024-09-16 01:30:06 +02:00
Charles Le Maux
8ae3760b0b [+] Modded patch pre-0.7 2024-09-15 23:01:23 +02:00
Charles Le Maux
4c33710071 [+] Fixed deployed JVM associations 2024-09-15 18:46:52 +02:00
Charles Le Maux
b238604493 [-] Modified server launching command according to new server architecture migration 2024-09-15 07:49:32 +02:00
charleslemaux
7d3a8f8234
Fixed associations for [Minecraft | JAVA_SDK]
Co-authored-by: charleslemaux <charles@le-maux.dev>
2024-09-14 17:01:01 +02:00
Charles Le Maux
07696572aa [-] 👀 2024-09-14 16:34:44 +02:00
Charles Le Maux
89145b15a4 [~] Moved get_sdk_version on main server_mc_manager scope 2024-09-14 16:34:00 +02:00
Charles Le Maux
f62c5fc856 [+] Masterclass conditional minecraft version checker
- Added version parameter to 'start_server' function in MinecraftManager class

- Implemented a version checker that uses a pointer of Tuples, each of them containing a lower and upper bound, as well as the associated sdk

- Used currying method to concatenate 'version_range_checker' into the fastest and most efficient code

This system will allow easy versioning, as well as easy future sdk implementations.
It will also now be easy to fetch a server's version directly in the backend.

Co-authored-by: charleslemaux <charles@le-maux.dev>
2024-09-13 04:14:37 +02:00
Charles Le Maux
11fcb0f89c [+] Now include the server's version before launching 2024-09-13 04:02:07 +02:00
Charles Le Maux
9756697420 [+] Useful minecraft servers organizer :) 2024-09-13 04:00:51 +02:00
Charles Le Maux
dec704f3c5 [+] Standard server field getter 2024-09-13 04:00:14 +02:00
Charles Le Maux
8b90dc2c3d [-] log_error -> synchronous 2024-09-12 14:10:14 +02:00
Charles Le Maux
a935792c24 Merge branch 'master' into plugin-management-system 2024-09-12 12:37:18 +02:00
charleslemaux
b36fb239ac
[+] FetchDirContent API call
[+] Corrected NewFetchfile branch PR
2024-09-11 04:20:56 +02:00
Charles Le Maux
142dff547f [+] Local testing successful 2024-09-11 04:16:26 +02:00
Charles Le Maux
984a2a9acd [+] Implemented new FetchDirContent API call :) 2024-09-11 04:16:14 +02:00
Charles Le Maux
0fc0c1cdd2 [-] Stopped async testing 2024-09-11 04:15:56 +02:00
Charles Le Maux
6832b05230 [+] filter_directory_content
Allows a user to extract the files having a specific extension
2024-09-11 04:15:40 +02:00
Charles Le Maux
b558b02711 [+] FetchDirContent 2024-09-11 04:15:09 +02:00
charleslemaux
3f154b93e4
Merge pull request #29
+fetch file names function added
2024-09-11 00:43:55 +02:00
AntoninoP
a5d9ff716d +fetch file names function added 2024-09-10 21:22:58 +02:00
charleslemaux
72b48c960b
[+] Mentioning parameters 2024-09-10 19:13:29 +02:00
charleslemaux
65e36ba9d9
[+] Parameters description 2024-09-10 19:11:54 +02:00
Charles Le Maux
4daf2ed654 [-] Removed var narrowing (from the main scope) 2024-09-10 13:29:00 +02:00
Charles Le Maux
a5ab9a0caa [-] Optimized error handling & imports
[~] Reordered functions
2024-09-10 13:26:39 +02:00
Charles Le Maux
315acec4a2 [+] Reordered generic_executor.py 2024-09-10 13:26:12 +02:00
Charles Le Maux
1b1df35a14 [+] Added server closing log 2024-09-10 13:16:16 +02:00
Charles Le Maux
88eaf0b4d8 [+] Added interval parameter for easier scheduler management.
Scheduler will default to 10 minutes, meaning a server will take 20 to automatically close.

The input interval shouldn't be lower than 5 minutes except when high load expected
2024-09-10 13:13:31 +02:00
Charles Le Maux
fe2ad4e0a1 [+] Updated Docker config 2024-09-10 02:38:24 +02:00
charleslemaux
29aa5a40e3
[+] Upload route
New upload route for the servii API
Now it only allows the user to send jar and zip files as this:
- Jar files are considered as plugins and are stored in the plugins folder of the server
- zip files are considered as datapacks and are therefore stored in the datapacks folder within the defaults world folder on the server
2024-09-10 01:10:31 +02:00
Charles Le Maux
2fe31596c0 [+] Corrected exception handling syntax 2024-09-10 01:06:56 +02:00
Charles Le Maux
8a282012e3 [+] Updated testing page 2024-09-10 01:05:36 +02:00
Charles Le Maux
c46e04f7f1 [+] Upload route 2024-09-10 01:05:25 +02:00
Charles Le Maux
a7decf8dac [+] File extension parser 2024-09-10 01:05:15 +02:00
Charles Le Maux
f74d1cf937 [~] Simple async tests 2024-09-10 00:54:14 +02:00
Charles Le Maux
1123b7f60d [+] Fixed positional argument in Firestore query 2024-09-09 23:16:30 +02:00
Charles Le Maux
9042bae61e [+] Werkzeug utils for filename safety 2024-09-07 16:41:56 +02:00
charleslemaux
3b6cd9e901
[-] Did not add async engine 2024-09-06 19:05:12 +02:00