修改证书配置
This commit is contained in:
parent
ae8a61ace8
commit
71e6a50414
@ -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.
|
||||
Loading…
x
Reference in New Issue
Block a user