refactor: use relative paths for certificates instead of absolute paths
All checks were successful
renovate / renovate (push) Successful in 19s
Docker Build and Push / build-and-push (push) Successful in 1m32s

This commit is contained in:
2025-12-28 19:53:03 +07:00
parent eee04daf80
commit c3a469be64
6 changed files with 19 additions and 12 deletions

View File

@@ -37,9 +37,9 @@ func NewTLSConfig(domain string) (*tls.Config, error) {
var initErr error
tlsManagerOnce.Do(func() {
certPath := utils.Getenv("CERT_LOC", "certs/cert.pem")
keyPath := utils.Getenv("KEY_LOC", "certs/privkey.pem")
storagePath := utils.Getenv("CERT_STORAGE_PATH", "certs/certmagic")
certPath := "certs/tls/cert.pem"
keyPath := "certs/tls/privkey.pem"
storagePath := "certs/tls/certmagic"
tm := &TLSManager{
domain: domain,