2025-03-01 11:39:07 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import "path/filepath"
|
|
|
|
|
|
2025-03-01 19:13:22 +00:00
|
|
|
// updatePaths sets certificate and config file paths based on the current config
|
2025-03-01 11:39:07 +00:00
|
|
|
func updatePaths() {
|
2025-03-01 19:13:22 +00:00
|
|
|
certDir = filepath.Join(baseDir, config.CertDir) // Certificate directory path
|
|
|
|
|
certPath = filepath.Join(certDir, config.CertFile) // Full certificate file path
|
|
|
|
|
keyPath = filepath.Join(certDir, config.KeyFile) // Full private key file path
|
|
|
|
|
configPath = filepath.Join(baseDir, "config.yaml") // Config file path
|
2025-03-01 11:39:07 +00:00
|
|
|
}
|