mirror of
https://github.com/katanemo/plano.git
synced 2026-04-29 10:56:35 +02:00
fix: use macOS CA cert path in native mode envoy config
This commit is contained in:
parent
d0289fb8f9
commit
38cb81ba7a
1 changed files with 8 additions and 0 deletions
|
|
@ -134,6 +134,14 @@ def render_native_config(plano_config_file, env, with_tracing=False):
|
|||
os.makedirs(log_dir, exist_ok=True)
|
||||
envoy_content = envoy_content.replace("/var/log/", log_dir + "/")
|
||||
|
||||
# Replace Linux CA cert path with platform-appropriate path
|
||||
import platform
|
||||
|
||||
if platform.system() == "Darwin":
|
||||
envoy_content = envoy_content.replace(
|
||||
"/etc/ssl/certs/ca-certificates.crt", "/etc/ssl/cert.pem"
|
||||
)
|
||||
|
||||
with open(envoy_config_path, "w") as f:
|
||||
f.write(envoy_content)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue