update trojan server

This commit is contained in:
Tokumeikoi
2020-06-18 20:25:53 +08:00
parent a45f8e121d
commit 13f17d41f0
7 changed files with 12 additions and 234 deletions

View File

@ -118,7 +118,7 @@ class ServerService
}
$json = json_decode(self::TROJAN_CONFIG);
$json->local_port = $server->port;
$json->local_port = $server->server_port;
$json->ssl->sni = $server->host;
$json->ssl->cert = "/root/.cert/{$server->host}.crt";
$json->ssl->key = "/root/.cert/{$server->host}.key";