install-script icon indicating copy to clipboard operation
install-script copied to clipboard

Adding SSL for other software using other ports

Open lights7 opened this issue 2 years ago • 0 comments

Once installed Trojan Panel, I want to install other software on the same server, such as Rocket.chat, it uses port 3000, and require https, is there any way to modify config.json in caddy of Trojan Panel (/tpdata/caddy) to add port 3000 and has https (SSL)? I can change admin disabled from true to false admin":{ "disabled":false }, and then docker exec -w /etc/caddy a9c65f2e95e1 caddy reload --config /tpdata/caddy/config.json to reload the config file.

安装了Trojan Panel后,我想在同一台服务器上安装其他软件,比如Rocket.chat,它使用3000端口,需要https,有没有办法修改Trojan Panel的caddy(/tpdata/caddy)中的config.json,增加3000端口并有https(SSL)?我可以将admin disable true 改成 false, 然后通过 运行下面的命令来重新调入config.json文件 docker exec -w /etc/caddy a9c65f2e95e1 caddy reload --config /tpdata/caddy/config.json

In the config.json, can I add https_port: 3000, in http section to add another port, just like 8863 port.

在config.json文件里,我可否加入 https_port:3000, 就在 http 那里头,就象8863一样加入另一个端口 3000.

The domain can remain the same. This is important because we can use the server's other ports for other software. Otherwise both 80 and 443 are occupied by Trojan Panel, we cannot install other software. If you can add and leave some extra ports in Trojan Panel for other software in the future, that would be great.

域名可以保持不变。 这一点很重要,因为我们可以使用服务器的其他端口安装其他软件。否则80和443都被Trojan Panel占用了,我们就无法安装其他软件。如果你们将来Trojan Panel中能为其他软件预留一些额外的端口,那就更好了。这样我们也知道如何添加更多其他的端口。

lights7 avatar Jul 04 '23 15:07 lights7