1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00

Fix a few bugs

This commit is contained in:
Dane Everitt 2016-01-18 21:35:37 -05:00
parent ac6edc4d64
commit a457bf2806
2 changed files with 20 additions and 26 deletions

View File

@ -17,6 +17,22 @@ use Pterodactyl\Exceptions\DisplayValidationException;
class ServerRepository
{
protected $daemonPermissions = [
's:get',
's:power:start',
's:power:stop',
's:power:restart',
's:power:kill',
's:console',
's:command',
's:files:get',
's:files:read',
's:files:post',
's:files:delete',
's:files:upload',
's:set-password'
];
public function __construct()
{
//
@ -236,18 +252,7 @@ class ServerRepository
'option' => $option->tag
],
'keys' => [
(string) $server->daemonSecret => [
's:get',
's:power',
's:console',
's:command',
's:files:get',
's:files:read',
's:files:post',
's:files:delete',
's:files:upload',
's:set-password'
]
(string) $server->daemonSecret => $this->daemonPermissions
],
'rebuild' => false
]
@ -336,18 +341,7 @@ class ServerRepository
'json' => [
'keys' => [
(string) $oldDaemonKey => [],
(string) $server->daemonSecret => [
's:get',
's:power',
's:console',
's:command',
's:files:get',
's:files:read',
's:files:post',
's:files:delete',
's:files:upload',
's:set-password'
]
(string) $server->daemonSecret => $this->daemonPermissions
]
]
]);

View File

@ -248,8 +248,8 @@
"listen": {{ $node->daemonListen }},
"ssl": {
"enabled": {{ $node->sceheme === 'https' ? 'true' : 'false' }},
"certificate": "~/.ssl/ssl.cert",
"key": "~/.ssl/ssl.key"
"certificate": "/etc/letsencrypt/live/{{ $node->fqdn }}/fullchain.pem",
"key": "/etc/letsencrypt/live/{{ $node->fqdn }}/privkey.pem"
}
},
"docker": {