Dane Everitt
09826fc7ad
Performance improvements by using a smaller buffer size
2020-08-23 17:18:40 -07:00
Dane Everitt
4d3a860604
Use environment namespace for power state, don't duplicate them across server
2020-08-19 18:58:48 -07:00
Dane Everitt
b9fb922e91
Fix the race condition where the race is actually happening
2020-08-18 21:46:17 -07:00
Dane Everitt
cc52954a2a
Refactor environment handling logic to separate a server from the environment handler itself
...
This change makes the environment handling logic execute independent of the server itself and should make it much easier for people to contribute changes and additional environment handlers down the road without polluting the server object even more.
There is still a lot of work to do on this front to make things easier to work with, and there are some questionable design decisions at play I'm sure.
Welcome to additional modifications and cleanup to make this code easier to reason about and work with.
2020-08-10 21:38:42 -07:00
Dane Everitt
9d350d845f
Merge branch 'develop' of https://github.com/pterodactyl/wings into develop
2020-08-01 16:53:28 -07:00
Dane Everitt
8b0b40e377
Update router_server_files.go
2020-08-01 16:53:14 -07:00
Dane Everitt
fef3b001c1
Merge pull request #44 from pterodactyl/feature/file-uploads
...
Add a upload file endpoint
2020-08-01 15:35:28 -07:00
Dane Everitt
177aa8e436
Refactor power handling logic to be more robust and able to handle spam clicking and duplicate power actions
2020-08-01 15:20:39 -07:00
Matthew Penner
776062107b
Force upload file overwrite and remove un-needed TODO comments
2020-07-31 21:15:36 -06:00
Dane Everitt
da26b4c5c7
Merge pull request #41 from pterodactyl/fix/race-1
...
Fix a possible race condition when Unsubscribing from the EventBus
2020-07-31 20:11:21 -07:00
Dane Everitt
8af26ac864
Merge pull request #43 from pterodactyl/impl/2194
...
Add the ability to define additional allowed origins
2020-07-31 20:04:10 -07:00
Matthew Penner
b1940426c3
Merge develop into feature/file-uploads
2020-07-31 16:31:06 -06:00
Matthew Penner
b811d2474e
Add the ability to define additional allowed origins
2020-07-31 16:19:09 -06:00
Matthew Penner
e85b1cecb7
Fix 500 errors on file routes when accessing a file that doesn't exist
2020-07-31 16:01:32 -06:00
Matthew Penner
5036077152
Hopefully fix a possible race condition when Unsubscribing from the EventBus while an event is being Published
2020-07-29 23:18:11 -06:00
Dane Everitt
7f9ec4402a
Add emitters for install started/stopped
2020-07-29 21:39:27 -07:00
Dane Everitt
f0d6f67c6b
Fix memory leak with websocket not removing unused listeners
2020-07-29 21:39:17 -07:00
Dane Everitt
79ee259874
correctly return server resource stats; closes pterodactyl/panel#2183
2020-07-29 20:34:30 -07:00
Dane Everitt
cb850fd81a
Update all of the old UUID refs to new
2020-07-19 17:53:41 -07:00
Dane Everitt
0cbaad5c72
Completely re-work the server configuration to be separated out better
2020-07-19 16:27:55 -07:00
Dane Everitt
a00288aa64
Require a lock on the restart process to avoid double restarts causing unexpected behavior
2020-07-18 16:46:41 -07:00
Dane Everitt
6de18f09e5
Don't block websocket from handling another message when a long running proccess is triggered
2020-07-18 16:45:10 -07:00
Dane Everitt
8315ff8ae1
Misc mutex locking things to avoid data races
2020-07-18 16:03:25 -07:00
Dane Everitt
115131575d
Return a 404 when the directory does not exist
2020-07-18 10:16:40 -07:00
Dane Everitt
21303dc517
Address race conditions when booting a server process
2020-07-18 10:10:34 -07:00
Dane Everitt
f3c8220bd9
Change filewalker implementation to use a pool
2020-07-16 21:51:31 -07:00
Dane Everitt
a635cdd6b2
Support unarching in a better fashion with zip-slip protections and size checking
2020-07-15 21:16:08 -07:00
Matthew Penner
b64f1897fb
Add endpoint for decompressing archives
2020-07-15 12:28:45 -06:00
Matthew Penner
7a6397bf17
Add basic file upload support
2020-07-12 16:43:25 -06:00
Dane Everitt
233cefd129
Fix renaming to correctly create the base files if missing
2020-07-11 16:19:51 -07:00
Dane Everitt
d60b2d6163
Support renaming multiple files at once
2020-07-11 16:00:39 -07:00
Dane Everitt
292f0d6452
Support deleting multiple files at the same time
2020-07-11 15:33:53 -07:00
Dane Everitt
7147f477e2
Throw error if empty files
2020-07-11 13:38:25 -07:00
Dane Everitt
2cef055ff2
use files not paths
2020-07-11 13:28:17 -07:00
Dane Everitt
daf401e326
Block request if not enough space is available
2020-07-11 13:16:12 -07:00
Dane Everitt
c1e591c99b
Support generating a compressed archive for a server via the API
2020-07-11 13:13:49 -07:00
Dane Everitt
ea2630946a
Sync server state with Panel before performing installation to ensure information is up to date
2020-06-30 20:56:55 -07:00
Dane Everitt
d6a3d9adb1
Don't obliterate custom SSL locations if defined
...
closes pterodactyl/panel#2121
2020-06-29 20:56:13 -07:00
Dane Everitt
1f6789cba3
Acquire exclusive lock when installing a server
...
Also allows aborting a server install mid-process when the server is deleted before the process finishes.
2020-06-22 21:38:16 -07:00
Dane Everitt
495ad4defd
Cleaner gin logging in debug
2020-06-13 10:54:38 -07:00
Dane Everitt
7d4a8d7f7e
Update everything expect transfers & sftp to not use zap
2020-06-13 10:40:26 -07:00
Dane Everitt
65b1b96b06
Merge branch 'develop' of https://github.com/pterodactyl/wings into develop
2020-06-13 10:26:37 -07:00
Dane Everitt
198a22f446
Replace even more zap occurences
2020-06-13 10:26:35 -07:00
Matthew Penner
5c2686fc6d
Fix multiple server status messages
2020-06-10 15:00:59 -06:00
Dane Everitt
62e5547c6d
Merge pull request #32 from pterodactyl/issue/1796
...
Send disk usage when server is offline
2020-05-31 10:54:21 -07:00
Carlo Field
359564bd91
#2078 - fix BindJSON calls
2020-05-29 17:44:49 +02:00
Dane Everitt
82ffb9804d
Don't lock up websocket when sending error json; ref pterodactyl/panel#2076
2020-05-28 19:52:47 -07:00
Matthew Penner
74097cc4ad
Fix sending status event to all subscribers, send disk usage when server is offline
2020-05-22 11:01:27 -06:00
Dane Everitt
3fe884670d
Fix handling of files with special characters and spaces
...
closes pterodactyl/panel#2040
closes pterodactyl/panel#2038
2020-05-17 15:07:11 -07:00
Dane Everitt
2e055cf630
Unsubscribe any open event listeners when deleting a server
2020-05-03 21:30:16 -07:00