Ah, but I would have an exact example of smth. else related to imports (which I already fixed too…).
[As I don’t want to include my 20++ files here I’m trying to keep it short.]
Files:
.
├── Caddyfile
└── dir with spaces
└── import-suff.conf
└── modules
└── tls.conf
.
└── domainFolder
| └── Caddyfile.conf
└──domainFolder2
└── Caddyfile.conf
{
debug
}
import "dir with space/import-stuff.conf"
import "full-path/to/domain/folder/domainFolder/*.conf"
import "full-path/to/domain/folder/domainFolder2/*.conf"
# domainFolder/Caddyfile
localhost:80001 {
import ./modules/tls.conf # <--- Doesn't work.
}
My fix: Use of environment variables for an absolute path back to the modules folder