Skip to content

Commit 1eaf411

Browse files
authored
node: lowercase fqdn in letsencrypt path (pterodactyl#3890)
1 parent 28f7a80 commit 1eaf411

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/Models/Node.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Pterodactyl\Models;
44

5+
use Illuminate\Support\Str;
56
use Symfony\Component\Yaml\Yaml;
67
use Illuminate\Container\Container;
78
use Illuminate\Notifications\Notifiable;
@@ -155,8 +156,8 @@ public function getConfiguration()
155156
'port' => $this->daemonListen,
156157
'ssl' => [
157158
'enabled' => (!$this->behind_proxy && $this->scheme === 'https'),
158-
'cert' => '/etc/letsencrypt/live/' . $this->fqdn . '/fullchain.pem',
159-
'key' => '/etc/letsencrypt/live/' . $this->fqdn . '/privkey.pem',
159+
'cert' => '/etc/letsencrypt/live/' . Str::lower($this->fqdn) . '/fullchain.pem',
160+
'key' => '/etc/letsencrypt/live/' . Str::lower($this->fqdn) . '/privkey.pem',
160161
],
161162
'upload_limit' => $this->upload_size,
162163
],

0 commit comments

Comments
 (0)