Commit Graph

514 Commits

Author SHA1 Message Date
Dane Everitt
d9ceb9601d
Do not set the default values in the struct we're unmarshaling into
closes 

If you set the defaults, you'll override a bunch of values for the server with the original values. For example this code caused servers in a running state to be changed to a non-running state, thus leading to stats not sending.

Just merge in any new values, leave everything else as empty.
2019-12-24 16:35:43 -08:00
Dane Everitt
ea867d16a5
None of these constants are actually used 2019-12-24 15:30:25 -08:00
Dane Everitt
82e1cbbc46
Remove this file, it isn't correct anymore 2019-12-22 15:02:50 -08:00
Dane Everitt
7f8e0cc66b
Show stack on error better 2019-12-22 14:54:36 -08:00
Dane Everitt
2d0faadeb6
Always rebuild the container when a server is started 2019-12-22 13:52:22 -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
834f0122e3
Update configuration struct to support defaults 2019-12-22 13:20:34 -08:00
Dane Everitt
0866b84d8e
Implement server deletion 2019-12-21 23:23:56 -08:00
Dane Everitt
038436c781
Correctly include the server data folder 2019-12-21 21:17:14 -08:00
Dane Everitt
a8e907a0fc
Don't force debug to true in config file when set via flag 2019-12-21 21:10:45 -08:00
Dane Everitt
536038967a
Better debug output 2019-12-21 21:03:57 -08:00
Dane Everitt
189289ad5f
Correctly handle updating server data 2019-12-21 21:02:02 -08:00
Dane Everitt
d583c1d53e
Allow all websocket connections, but require authentication before sending anything down the line 2019-12-21 17:31:21 -08:00
Dane Everitt
06780ac28f
Include access control headers 2019-12-16 21:43:07 -08:00
Dane Everitt
3fd5b1e92b
Fix crash detection defaults 2019-12-16 21:23:57 -08:00
Dane Everitt
dd4a920d62
Whoopsie, helps to actually do something with the error 2019-12-16 20:55:56 -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
a1fa876734
[#3c9g25] Add endpoint for returning basic system information 2019-12-09 21:05:55 -08:00
Dane Everitt
89806427f9
Fix SFTP server integration 2019-12-08 10:29:10 -08:00
Dane Everitt
6ac328392e
Get SFTP validation finalized 2019-12-07 17:35:45 -08:00
Dane Everitt
91d5735ba8
Add support for creating network if it is missing 2019-12-07 17:31:12 -08:00
Dane Everitt
21d8384848
Create the config file if it is missing for the server, then try again 2019-12-07 16:48:26 -08:00
Dane Everitt
c9bff0fa31
Move server tracking in program into global memory state 2019-12-07 16:43:00 -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
4a68eabd1b
Initial functionality to pull a docker image when booting an environment 2019-12-07 14:19:51 -08:00
Dane Everitt
52ca0667ca
Add base support for internalizing the SFTP server 2019-12-07 14:01:40 -08:00
Dane Everitt
e1435bfe8f
[#3896bk] Better support for XML documents 2019-12-01 15:40:08 -08:00
Dane Everitt
35cdff904f
[#3896bk] Support using configuration param inline with other values 2019-12-01 15:27:53 -08:00
Dane Everitt
1be21b7078
[#3896bk] Support parsing XML files 2019-12-01 15:04:03 -08:00
Dane Everitt
6e9606bc89
[#3896bk] Add support for ini file parsing 2019-12-01 12:53:47 -08:00
Dane Everitt
86b909550c
[#3896bk] Migrate helper functions out of main file for readability 2019-12-01 12:25:16 -08:00
Dane Everitt
07785194c4
[#3896bk] Ensure the data types are maintained correctly 2019-12-01 12:18:41 -08:00
Dane Everitt
1a4bdc87c9
[#3896bk] Support wildcards in yaml/json configs 2019-12-01 11:54:33 -08:00
Dane Everitt
cae0c70b0f
[#3896bk] Fix handling of YAML/JSON when parsing configuration files 2019-12-01 11:19:49 -08:00
Dane Everitt
0e51db1c03
[#3896bk] Add plaintext and basic yaml matching support 2019-11-30 22:24:44 -08:00
Dane Everitt
32c32bb24e
Fix improper goroutine 2019-11-30 21:46:54 -08:00
Dane Everitt
1003abaa63
[#3896bk] Configure base support for properties file parsing 2019-11-30 18:07:05 -08:00
Dane Everitt
11c6738264
[] Show crash output in console 2019-11-30 17:08:11 -08:00
Dane Everitt
8c57583ce9
[] Add crash detection logic to daemon 2019-11-30 16:43:18 -08:00
Dane Everitt
be14811eb4
Fix issues instantiating the server struct 2019-11-30 16:37:11 -08:00
Dane Everitt
bdf546c47a
Don't log an error for suspended servers like this 2019-11-30 16:36:20 -08:00
Dane Everitt
4ce9c83fad
[#3896cn] Fix nil pointer when passing data through patch 2019-11-30 15:46:28 -08:00
Dane Everitt
0ce95aa2e3
[#3896cn] Add support for suspending a server and blocking boot when suspended 2019-11-30 15:19:08 -08:00
Dane Everitt
fa42ed92fb
Ensure we count the number for the waitgroup correctly 2019-11-30 14:10:32 -08:00
Dane Everitt
3663a8fb31
Add debug output when dealing with a server that is being restarted 2019-11-24 21:40:25 -08:00
Dane Everitt
b3de4705ae
Persist configuration when server state is changed 2019-11-24 21:36:33 -08:00
Dane Everitt
85762ba4b9
Server state handling; auto start servers if they were running when the daemon stopped 2019-11-24 21:31:31 -08:00
Dane Everitt
47c7c872fc
Don't track the process state in the yaml 2019-11-24 21:18:51 -08:00