update trojan server

This commit is contained in:
Tokumeikoi
2020-06-12 14:22:00 +08:00
parent 796de25e2d
commit 2414ad5d96
4 changed files with 2 additions and 6 deletions

View File

@ -119,6 +119,8 @@ class ServerService
$json = json_decode(self::TROJAN_CONFIG);
$json->ssl->sni = $server->host;
$json->ssl->cert = "/home/{$server->host}.crt";
$json->ssl->key = "/home/{$server->host}.key";
$json->api->api_port = $localPort;
return $json;
}