mirror of
https://github.com/kunkundi/crossdesk-server.git
synced 2026-03-20 14:39:04 +08:00
[fix] fix cert file path error
This commit is contained in:
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: Cache xmake dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.xmake/packages
|
||||
path: /home/runner/.xmake/packages
|
||||
key: ${{ runner.os }}-xmake-deps-linux-${{ hashFiles('**/xmake.lua') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-xmake-deps-linux-
|
||||
|
||||
@@ -73,7 +73,7 @@ context_ptr SignalServer::OnTlsInit(websocketpp::connection_hdl hdl) {
|
||||
asio::ssl::context::default_workarounds | asio::ssl::context::no_sslv2 |
|
||||
asio::ssl::context::no_sslv3 | asio::ssl::context::single_dh_use);
|
||||
|
||||
std::string cert_file = certs_dir_ + "crossdesk.cn_bundle.crt";
|
||||
std::string cert_file = certs_dir_ + "/crossdesk.cn_bundle.crt";
|
||||
std::string key_file = certs_dir_ + "/crossdesk.cn.key";
|
||||
ctx->use_certificate_chain_file(cert_file);
|
||||
ctx->use_private_key_file(key_file, asio::ssl::context::pem);
|
||||
|
||||
Reference in New Issue
Block a user