修改证书配置
This commit is contained in:
parent
ae8a61ace8
commit
71e6a50414
@ -173,7 +173,11 @@ certificate_config() ->
|
|||||||
{ok, Props} = application:get_env(sdlan, certificate),
|
{ok, Props} = application:get_env(sdlan, certificate),
|
||||||
CertFile = proplists:get_value(certfile, Props),
|
CertFile = proplists:get_value(certfile, Props),
|
||||||
KeyFile = proplists:get_value(keyfile, Props),
|
KeyFile = proplists:get_value(keyfile, Props),
|
||||||
|
|
||||||
%% 获取环境变量
|
%% 获取环境变量
|
||||||
Path = os:getenv("QUIC_CERT_PATH"),
|
case os:getenv("QUIC_CERT_PATH") of
|
||||||
% 必选:QUIC/TLS证书配置
|
false ->
|
||||||
{Path ++ "/" ++ CertFile, Path ++ "/" ++ KeyFile}.
|
{CertFile, KeyFile};
|
||||||
|
Path ->
|
||||||
|
{Path ++ "/" ++ CertFile, Path ++ "/" ++ KeyFile}
|
||||||
|
end.
|
||||||
Loading…
x
Reference in New Issue
Block a user