Dane Everitt
6ba15e9884
Better error handling from responses
2020-09-13 13:55:40 -07:00
Matthew Penner
7ba32aca84
Fix some typos and run gofmt on all .go files
2020-09-05 13:08:40 -06:00
Dane Everitt
1e633ae302
Bring the sftp server code into the package itself
2020-08-31 20:14:04 -07:00
Dane Everitt
a7ca6b2e34
Correctly report backup API errors; ref pterodactyl/panel#2271
2020-08-27 19:35:57 -07:00
Dane Everitt
7287b8e198
Pass the checksum type along in the request
2020-08-23 17:52:46 -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
642e6e6a96
Different implementation of multi-check for done
...
Co-Authored-By: Matthew Penner <me@matthewp.io>
2020-08-04 21:29:43 -07:00
Matthew Penner
9bd10f1043
Changes to ProcessConfiguration
2020-08-04 21:41:09 -06:00
Matthew Penner
eb975e0cbd
Add option to strip ansi colors and split the done line in egg startup configuration
2020-08-04 17:39:54 -06:00
Dane Everitt
82912595b7
Update SFTP logic for authentication to avoid brute forces; replicates logic from #9
...
Co-Authored-By: Stepan Fedotov <trixterthetux@users.noreply.github.com>
2020-07-02 21:03:11 -07:00
Dane Everitt
db31722cfc
Don't cause a double stacktrace on certain errors
2020-06-22 20:51:41 -07:00
Dane Everitt
f8bffd8391
Start the process of migrating from zap to a cleaner CLI output for logs
2020-05-28 22:07:53 -07:00
Dane Everitt
911b809a4e
Clean debugging output to not include the full authorization key in debug output
2020-05-17 15:28:04 -07:00
Dane Everitt
b0fa5abe31
Less error spam for things not actually broken
2020-04-25 11:49:21 -07:00
Dane Everitt
11035b561a
Break out the backup functions of the daemon in prep for S3 support
2020-04-13 22:01:07 -07:00
Matthew Penner
814914ca19
Fix json#Unmarshal when there are no servers
2020-04-10 18:23:45 -06:00
Matthew Penner
4ea1b90560
Merge branch 'develop' into issues/1899
2020-04-10 17:27:39 -06:00
Dane Everitt
ac9ab4c0b0
Update to match new configuration structure
2020-04-10 15:22:15 -07:00
Matthew Penner
28c8f3f400
Add the ability to fetch all servers, fix cpu usage leak again..
2020-04-10 15:39:07 -06:00
Matthew Penner
5693d0431e
Merge branch 'develop' into feature/server-transfers
2020-04-04 17:17:09 -06:00
Dane Everitt
4ce2b73490
Add first implementation of local backups for a server
2020-04-04 16:07:25 -07:00
Matthew Penner
6af3cb2c9b
Get transfers 'fully' working, need to add fail request though
2020-04-04 16:15:49 -06:00
Matthew Penner
3dba11ac6f
Add ability to create archives of servers, add GET and POST /api/servers/:server/archive routes to get and request an archive of a server
2020-04-03 23:17:26 -06:00
Dane Everitt
59299d3cda
Add code to notify panel when install is completed
2020-01-19 13:30:54 -08:00
Dane Everitt
6ef2773c01
Very, very basic server installation process
2019-12-28 14:57:19 -08:00
Dane Everitt
fabaf21a0d
Sync all server details when booting daemon or server process
2019-12-22 13:21:21 -08:00
Dane Everitt
92a7c9d231
Don't freak out if the server doesn't exist on the remote
2019-12-16 20:47:35 -08:00
Dane Everitt
514c16ccc8
Less obtuse error handling from API responses
2019-12-16 20:34:58 -08:00
Dane Everitt
e2c04cc6f5
Change endpoint for SFTP credentials
2019-12-07 15:58:22 -08:00
Dane Everitt
865c1b3bad
Begin implementing SFTP server code
2019-12-07 15:53:07 -08:00
Dane Everitt
1003abaa63
[#3896bk] Configure base support for properties file parsing
2019-11-30 18:07:05 -08:00
Dane Everitt
cae0090763
Correct some error handling, use package that provides useful stack traces
2019-11-16 17:01:38 -08:00
Dane Everitt
00bc71afd1
Update stop for servers to use configuration
2019-09-22 21:22:16 -07:00
Dane Everitt
d7753d9c7f
Add initial support for fetching egg configuration from panel for servers
2019-09-22 20:47:38 -07:00
Dane Everitt
25053cb2db
Remove initial iterations of code for now, will ref it later
2019-04-03 23:15:47 -07:00
Jakob Schrettenbrunner
e1fbb03caf
remove api/routes.go
2018-05-17 21:24:23 +02:00
Jakob Schrettenbrunner
53a3fbc464
remove trailing slashes from api
...
use correct handler to provide server logs
remove Baerer from Authorization header to compare it with known tokens
fix wings-api.paw routes
2018-05-17 21:18:02 +02:00
Jakob Schrettenbrunner
09da18f42e
Merge branch 'develop' into feature/docker-environment
...
# Conflicts:
# .dev/vagrant/provision.sh
# Gopkg.lock
# Gopkg.toml
# Vagrantfile
# api/api.go
# api/auth.go
# api/handlers.go
# api/handlers_server.go
# api/routes.go
# api/utils.go
# command/root.go
# control/docker_environment.go
# control/server.go
# glide.lock
# glide.yaml
# utils/logger.go
# wings.go
2018-05-16 10:00:07 +02:00
Jakob Schrettenbrunner
53704fb0d7
refactor websockets implementation
2018-03-14 10:34:06 +01:00
Jakob Schrettenbrunner
184d7e0afe
lots of api changes
...
use jsonapi to format responses
add somewhat working websockets
2018-02-20 23:36:17 +01:00
Dane Everitt
bbc6d26b35
Break more of everything
2018-02-20 15:20:57 -06:00
Jakob Schrettenbrunner
e4e060a82f
rename to new lowercase github namespace
2018-02-20 21:25:31 +01:00
Dane Everitt
4359d152b7
Butcher the app in an attempt to make it boot past step 1
2018-02-20 14:00:09 -06:00
Dane Everitt
bacdfae768
Probably breaks everything, lowercase pterodactyl
2018-02-20 13:33:32 -06:00
Jakob Schrettenbrunner
72ac95267b
fix some merge fails
2017-10-09 21:01:24 +02:00
Jakob Schrettenbrunner
44f42eec8c
Merge branch 'develop' of github.com:Pterodactyl/wings into develop
...
# Conflicts:
# api/api.go
# api/core_routes.go
# api/handlers_server.go
# api/routes_server.go
# config.example.json
# utils/logging.go
2017-10-01 20:59:32 +02:00
Jakob Schrettenbrunner
c979285eb9
current state of api & docker env implementation
2017-10-01 20:42:17 +02:00
Dane Everitt
90fd485edf
Lets not, please.
2017-09-30 19:25:45 -05:00
Dane Everitt
339d2d286d
Forgotten routes into v1 namespace
2017-09-30 18:37:08 -05:00
Dane Everitt
1bfc016e1b
Clean up route handling
2017-09-30 18:35:44 -05:00