修改证书配置

This commit is contained in:
anlicheng 2026-05-03 17:36:17 +08:00
parent ae8a61ace8
commit 71e6a50414

View File

@ -173,7 +173,11 @@ certificate_config() ->
{ok, Props} = application:get_env(sdlan, certificate),
CertFile = proplists:get_value(certfile, Props),
KeyFile = proplists:get_value(keyfile, Props),
%%
Path = os:getenv("QUIC_CERT_PATH"),
% QUIC/TLS证书配置
{Path ++ "/" ++ CertFile, Path ++ "/" ++ KeyFile}.
case os:getenv("QUIC_CERT_PATH") of
false ->
{CertFile, KeyFile};
Path ->
{Path ++ "/" ++ CertFile, Path ++ "/" ++ KeyFile}
end.