added the tls configuration for pxy targets

This commit is contained in:
2025-08-24 14:36:10 +09:00
parent 42ceb5f3fa
commit e2a3180ec7
4 changed files with 13 additions and 1 deletions

View File

@ -141,6 +141,9 @@ type ServerConfig struct {
PXY struct {
Service PXYServiceConfig `yaml:"service"`
TLS ServerTLSConfig `yaml:"tls"`
Target struct {
TLS ClientTLSConfig `yaml:"tls"`
} `yaml:"target"`
} `yaml:"pxy"`
WPX struct {

View File

@ -123,6 +123,8 @@ func server_main(ctl_addrs []string, rpc_addrs []string, rpx_addrs[] string, pxy
if err != nil { return err }
config.PxyTls, err = make_tls_server_config(&cfg.PXY.TLS)
if err != nil { return err }
config.PxyTargetTls, err = make_tls_client_config(&cfg.PXY.Target.TLS)
if err != nil { return err }
config.WpxTls, err = make_tls_server_config(&cfg.WPX.TLS)
if err != nil { return err }