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
881cb84605
Actually set file permissions for servers when booting the daemon
2020-07-31 21:55:30 -07:00
Dane Everitt
f889a193bf
Use NumCPU and not GOMAXPROCS
2020-07-31 21:31:53 -07:00
Dane Everitt
5e8425ad6a
Code cleanup; use a worker pool for updating file permissions to avoid run-away go-routines
...
Co-Authored-By: Jakob <schrej@users.noreply.github.com>
2020-07-31 21:14:49 -07:00
Dane Everitt
cecc72110c
Merge pull request #46 from pterodactyl/feature/docker-repo-auth
...
Add Docker registry authentication
2020-07-31 20:27:35 -07:00
Matthew Penner
8f1ebdd39f
Replace errors.Wrap with errors.WithStack
2020-07-31 21:22:01 -06:00
Matthew Penner
5b999db7f3
Add Docker registry authentication
2020-07-31 18:28:40 -06:00
Matthew Penner
43795a4be3
Document config options
2020-07-31 16:21:27 -06:00
Matthew Penner
b811d2474e
Add the ability to define additional allowed origins
2020-07-31 16:19:09 -06:00
Matthew Penner
93228933bf
Merge branch 'develop' into feature/server-mounts
2020-07-11 12:32:34 -06:00
Matthew Penner
3a6050446f
Add AllowedMounts configuration option, block any custom mounts if they are not in the AllowedMounts list
2020-07-04 15:32:53 -06:00
Matthew Penner
d339996b4e
Tweaks to environment_docker.go, change container hostnames to use the server's uuid, add Domainname option
2020-07-04 15:14:22 -06:00
Dane Everitt
d284c4aec9
Fix lock obtainment to avoid freeze
2020-06-29 20:42:26 -07:00
Dane Everitt
05a4730489
Fix configuration file saving to disk using the config command
...
closes pterodactyl/panel#2135
2020-06-29 20:33:54 -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
6d7ab865d7
Fix SFTP default configuration; closes pterodactyl/panel#2045
2020-05-25 15:51:36 -07:00
Dane Everitt
c802a3397e
Fix warnings about configuration values; should always use the snake case since we're using a marshaled value
2020-05-17 17:25:53 -07:00
Kawaii Neko Lolis
cfca0d7f07
Added network option to docker configuration
2020-05-10 03:29:56 +02:00
Dane Everitt
fd83424ee2
Change default config location (again); support auto-locating and moving old configs
2020-05-09 15:37:49 -07:00
Dane Everitt
fab5d36917
Remove redundant code
2020-05-03 21:37:22 -07:00
Dane Everitt
eba5aa8cbe
Merge pull request #26 from pterodactyl/add/data_folder
...
add data folder on first startup
2020-05-03 20:43:03 -07:00
Dane Everitt
7321fe1421
Make DNS settings for containers configurable, closes #1965
2020-04-25 12:18:18 -07:00
Dane Everitt
9e0cacc076
Update output when booting
2020-04-17 14:32:09 -07:00
Dane Everitt
4279fa510e
Cleanup data storage locations for daemon
2020-04-17 14:27:06 -07:00
Michael Parker
9c5855663c
return errors
...
Actually return errors for stat and mkdir.
2020-04-14 22:06:19 -04:00
Michael (Parker) Parker
da093e7cf7
Update config/config.go
...
remove extra logging.
Co-Authored-By: Lance Pioch <git@lance.sh>
2020-04-14 13:07:10 -04:00
Michael Parker
df9c4835c4
fix folder adding
...
Sorry dane I missed that I nested those.
2020-04-14 00:03:16 -04:00
Michael Parker
65102966a1
add data folder on startup
...
Instead of making users create the data folder create it for them on startup if it doesn't exist.
2020-04-13 18:17:00 -04:00
Michael Parker
12c97c41b0
fixes distro matching
...
Adds osrelease to get distro name
2020-04-13 13:12:49 -04:00
Dane Everitt
b73f78a832
Fix configuration parsing
2020-04-12 17:39:19 -07:00
Michael Parker
fd28db4a68
alpine specific changes
...
This resolves issues on alpine where lsb_release doesn't exist.
Also correct the addgroup command
2020-04-12 17:07:41 -04:00
Dane Everitt
3bd48bbac1
Update the JWT signing algo when the signing key is changed in the config
2020-04-11 17:26:17 -07:00
Dane Everitt
d3a3d4dbf5
Fix configuration to read JSON correctly
2020-04-11 16:32:46 -07:00
Dane Everitt
083bea5504
Add support for modifying daemon configuration on-the-fly
2020-04-11 16:17:46 -07:00
Matthew Penner
1f4aca8210
Fix issue with config file saving, fix issue with state file saving, fix issue when merging a uuid into a server without one
2020-04-10 17:55:36 -06:00
Matthew Penner
4ea1b90560
Merge branch 'develop' into issues/1899
2020-04-10 17:27:39 -06:00
Matthew Penner
12648b43fa
Disable config saving temporarily
2020-04-10 17:19:35 -06:00
Dane Everitt
ac9ab4c0b0
Update to match new configuration structure
2020-04-10 15:22:15 -07:00
Matthew Penner
e719c67e0b
Removes SyncServersOnBoot configuration option and requires that servers are synced when the daemon boots
2020-04-10 12:16:04 -06:00
Matthew Penner
9e30d63818
Add debug logs when a non-500 error occurs, force sync the configuration during installation of a new server
2020-04-10 12:00:04 -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
8bd7708631
Get server transfers to download the archive from the old daemon
2020-04-04 14:08:17 -06:00
Matthew Penner
c096d8802f
Add configurable ArchiveDirectory
2020-04-04 00:17:32 -06:00
Dane Everitt
d7bd10fcee
Better approach to timezone handling by using a TZ environment variable
2019-12-24 16:57:22 -08:00
Dane Everitt
06f495682c
When mounting timezone data, check for the path first to avoid a fatal error
2019-12-24 16:49:08 -08:00
Dane Everitt
834f0122e3
Update configuration struct to support defaults
2019-12-22 13:20:34 -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
189289ad5f
Correctly handle updating server data
2019-12-21 21:02:02 -08:00
Dane Everitt
91d5735ba8
Add support for creating network if it is missing
2019-12-07 17:31:12 -08:00